shuffled root user options
This commit is contained in:
15
flake.nix
15
flake.nix
@@ -65,11 +65,8 @@
|
|||||||
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";
|
|
||||||
};
|
|
||||||
users.${config.user} = {
|
|
||||||
imports = [
|
imports = [
|
||||||
self.homeManagerModules.default {
|
self.homeManagerModules.default {
|
||||||
user = config.user;
|
user = config.user;
|
||||||
@@ -81,6 +78,14 @@
|
|||||||
}
|
}
|
||||||
] ++ config.extraImports;
|
] ++ 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