diff --git a/flake.nix b/flake.nix index 9956ed9..2251a62 100755 --- a/flake.nix +++ b/flake.nix @@ -43,6 +43,7 @@ darwinConfigurations = { "iMac-macOS" = nix-darwin.lib.darwinSystem { system = "x86_64-darwin"; + specialArgs = { inherit inputs; }; modules = [ ./darwin ./machines/darwin/imac-2017.nix diff --git a/flakes/darwin/home-manager.nix b/flakes/darwin/home-manager.nix index 7a6e7ab..e5ba846 100644 --- a/flakes/darwin/home-manager.nix +++ b/flakes/darwin/home-manager.nix @@ -1,7 +1,7 @@ { inputs, ... }: { - imports = [ inputs.home-manager.nixosModules.home-manager ]; + imports = [ inputs.home-manager.darwinModules.home-manager ]; home-manager = { useGlobalPkgs = true; diff --git a/users/guanranwang/home-manager/darwin/default.nix b/users/guanranwang/home-manager/darwin/default.nix new file mode 100644 index 0000000..97e6931 --- /dev/null +++ b/users/guanranwang/home-manager/darwin/default.nix @@ -0,0 +1,9 @@ +{ ... }: + +{ + imports = [ + ../common/home.nix + ./home.nix + ./dotfiles.nix + ]; +} \ No newline at end of file diff --git a/users/guanranwang/home-manager/darwin/home.nix b/users/guanranwang/home-manager/darwin/home.nix index 941cc37..97e2224 100644 --- a/users/guanranwang/home-manager/darwin/home.nix +++ b/users/guanranwang/home-manager/darwin/home.nix @@ -1,11 +1,6 @@ { config, pkgs, lib, ... }: { - imports = [ - ./dotfiles.nix - ../common/home.nix - ]; - home = { username = "guanranwang"; homeDirectory = "/Users/guanranwang";