diff --git a/lib/colmenaSystem.nix b/lib/colmenaSystem.nix index 7e58360e..3680fb7a 100644 --- a/lib/colmenaSystem.nix +++ b/lib/colmenaSystem.nix @@ -1,8 +1,9 @@ # colmena - Remote Deployment via SSH { + lib, inputs, nixos-modules, - home-module ? null, + home-modules ? null, myvars, system, tags, @@ -23,17 +24,16 @@ in imports = nixos-modules ++ ( - if (home-module != null) - then [ + lib.optionals ((lib.lists.length home-modules) > 0) + [ home-manager.nixosModules.home-manager { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; home-manager.extraSpecialArgs = specialArgs; - home-manager.users."${myvars.username}" = home-module; + home-manager.users."${myvars.username}".imports = home-modules; } ] - else [] ); } diff --git a/lib/macosSystem.nix b/lib/macosSystem.nix index fd553a79..347c919d 100644 --- a/lib/macosSystem.nix +++ b/lib/macosSystem.nix @@ -30,7 +30,7 @@ in ++ ( lib.optionals ((lib.lists.length home-modules) > 0) [ - home-manager.nixosModules.home-manager + home-manager.darwinModules.home-manager { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true;