renamed to mkhomeManagerModules

This commit is contained in:
John Lancaster
2025-07-03 21:37:07 -05:00
parent 16bdff2d69
commit ae071e4794

View File

@@ -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"; });
};
};
};