shuffled root user options
This commit is contained in:
35
flake.nix
35
flake.nix
@@ -65,21 +65,26 @@
|
||||
home-manager = {
|
||||
useUserPackages = true;
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
users.root.home.stateVersion = config.stateVersion;
|
||||
users.root.programs.git = {
|
||||
extraConfig.credential.helper = "store --file ~/.git-credentials";
|
||||
};
|
||||
users.${config.user} = {
|
||||
imports = [
|
||||
self.homeManagerModules.default {
|
||||
user = config.user;
|
||||
stateVersion = config.stateVersion;
|
||||
profile = config.profile;
|
||||
shell = config.shell;
|
||||
ssh = config.ssh;
|
||||
_1password = config._1password;
|
||||
}
|
||||
] ++ config.extraImports;
|
||||
users = {
|
||||
${config.user} = {
|
||||
imports = [
|
||||
self.homeManagerModules.default {
|
||||
user = config.user;
|
||||
stateVersion = config.stateVersion;
|
||||
profile = config.profile;
|
||||
shell = config.shell;
|
||||
ssh = config.ssh;
|
||||
_1password = config._1password;
|
||||
}
|
||||
] ++ config.extraImports;
|
||||
};
|
||||
} // lib.optionalAttrs config.root {
|
||||
root = {
|
||||
home.stateVersion = config.stateVersion;
|
||||
programs.git = {
|
||||
extraConfig.credential.helper = "store --file ~/.git-credentials";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user