feat(nixos): refactor Git and GUI configuration handling
- Replaced `inherit` with explicit `settings` for Git user configuration. - Unified Git configuration structure across NixOS and home modules. - Adjusted GUI configuration by enabling `gdm.autoSuspend` and reordering options.
This commit is contained in:
parent
9f792774a5
commit
d7424a4cb6
3 changed files with 14 additions and 7 deletions
|
|
@ -31,13 +31,16 @@ in
|
|||
];
|
||||
programs.git = {
|
||||
enable = true;
|
||||
inherit (cfg) userName userEmail;
|
||||
lfs = enabled;
|
||||
signing = {
|
||||
key = cfg.signingKey;
|
||||
inherit (cfg) signByDefault;
|
||||
};
|
||||
extraConfig = {
|
||||
settings = {
|
||||
user = {
|
||||
email = cfg.userEmail;
|
||||
name = cfg.userName;
|
||||
};
|
||||
init = {
|
||||
defaultBranch = "main";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue