shuffled root user options

This commit is contained in:
John Lancaster
2025-07-03 00:27:12 -05:00
parent 7220d8eed2
commit de44f365fb

View File

@@ -65,21 +65,26 @@
home-manager = { home-manager = {
useUserPackages = true; useUserPackages = true;
extraSpecialArgs = { inherit inputs; }; extraSpecialArgs = { inherit inputs; };
users.root.home.stateVersion = config.stateVersion; users = {
users.root.programs.git = { ${config.user} = {
extraConfig.credential.helper = "store --file ~/.git-credentials"; imports = [
}; self.homeManagerModules.default {
users.${config.user} = { user = config.user;
imports = [ stateVersion = config.stateVersion;
self.homeManagerModules.default { profile = config.profile;
user = config.user; shell = config.shell;
stateVersion = config.stateVersion; ssh = config.ssh;
profile = config.profile; _1password = config._1password;
shell = config.shell; }
ssh = config.ssh; ] ++ config.extraImports;
_1password = config._1password; };
} } // lib.optionalAttrs config.root {
] ++ config.extraImports; root = {
home.stateVersion = config.stateVersion;
programs.git = {
extraConfig.credential.helper = "store --file ~/.git-credentials";
};
};
}; };
}; };
}; };