shuffled root user options
This commit is contained in:
35
flake.nix
35
flake.nix
@@ -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";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user