git: use XDG config directory
This commit is contained in:
parent
7a9c873093
commit
356c0bf751
|
@ -89,7 +89,7 @@ in
|
|||
email = cfg.userEmail;
|
||||
};
|
||||
|
||||
home.file.".gitconfig".text =
|
||||
xdg.configFile."git/config".text =
|
||||
generators.toINI {} cfg.iniContent;
|
||||
}
|
||||
|
||||
|
@ -110,7 +110,7 @@ in
|
|||
})
|
||||
|
||||
(mkIf (lib.isString cfg.extraConfig) {
|
||||
home.file.".gitconfig".text = cfg.extraConfig;
|
||||
xdg.configFile."git/config".text = cfg.extraConfig;
|
||||
})
|
||||
]
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue