diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/default.nix | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/lib/default.nix b/lib/default.nix index f677a89..960a7a4 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -33,16 +33,8 @@ inputs: lib: prev: with lib; rec { }: let machine = machines.${name}; - homeManagerModule = (if lib.hasInfix "darwin" system then - [inputs.home-manager.darwinModules.default] - else - [inputs.home-manager.nixosModules.default]); - systemForPlatform = (if lib.hasInfix "darwin" system then - lib.darwinSystem - else - lib.nixosSystem); in - systemForPlatform { + lib.nixosSystem { inherit lib system; specialArgs = { inherit (inputs) self; @@ -51,7 +43,10 @@ inputs: lib: prev: with lib; rec { modules = modules ++ - homeManagerModule + (if lib.hasInfix "darwin" system then + [inputs.home-manager.darwinModules.default] + else + [inputs.home-manager.nixosModules.default]) ++ [ ({pkgs, ...}: { nixpkgs.overlays = with lib; [ |
