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