mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-20 00:24:28 +01:00
refactor: home modules
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
system,
|
||||
genSpecialArgs,
|
||||
nixos-modules,
|
||||
home-module ? null,
|
||||
home-modules ? [],
|
||||
myvars,
|
||||
...
|
||||
}: let
|
||||
@@ -26,7 +26,7 @@ in
|
||||
}
|
||||
]
|
||||
++ (
|
||||
lib.optionals (home-module != null)
|
||||
lib.optionals ((lib.lists.length home-modules) > 0)
|
||||
[
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
@@ -34,7 +34,7 @@ in
|
||||
home-manager.useUserPackages = true;
|
||||
|
||||
home-manager.extraSpecialArgs = specialArgs;
|
||||
home-manager.users."${myvars.username}" = home-module;
|
||||
home-manager.users."${myvars.username}".imports = home-modules;
|
||||
}
|
||||
]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user