1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-30 06:59:45 +01:00

git: use XDG config directory

This commit is contained in:
Florian Klink 2017-11-12 12:53:10 +01:00 committed by Robert Helgesson
parent 7a9c873093
commit 356c0bf751
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86

View file

@ -89,7 +89,7 @@ in
email = cfg.userEmail; email = cfg.userEmail;
}; };
home.file.".gitconfig".text = xdg.configFile."git/config".text =
generators.toINI {} cfg.iniContent; generators.toINI {} cfg.iniContent;
} }
@ -110,7 +110,7 @@ in
}) })
(mkIf (lib.isString cfg.extraConfig) { (mkIf (lib.isString cfg.extraConfig) {
home.file.".gitconfig".text = cfg.extraConfig; xdg.configFile."git/config".text = cfg.extraConfig;
}) })
] ]
); );