renamed to mkhomeManagerModules
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
shell = lib.mkIf config.shell pkgs.zsh;
|
||||
};
|
||||
|
||||
homeManagerModules = config: [
|
||||
mkhomeManagerModules = config: [
|
||||
self.homeManagerModules.default {
|
||||
user = config.user;
|
||||
stateVersion = config.stateVersion;
|
||||
@@ -35,6 +35,8 @@
|
||||
|
||||
in
|
||||
{
|
||||
lib = { inherit mkhomeManagerModules; };
|
||||
|
||||
homeManagerModules.default = { ... }: {
|
||||
imports = [
|
||||
./nixosModules/options.nix
|
||||
@@ -79,12 +81,12 @@
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
users = {
|
||||
${config.user} = {
|
||||
imports = homeManagerModules config;
|
||||
imports = mkhomeManagerModules config;
|
||||
};
|
||||
} // lib.optionalAttrs config.root {
|
||||
root = {
|
||||
# home.stateVersion = config.stateVersion;
|
||||
imports = homeManagerModules (config // { user = "root"; });
|
||||
imports = mkhomeManagerModules (config // { user = "root"; });
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user