From 356c0bf751a55878c448461d8ef1d17f43911acd Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sun, 12 Nov 2017 12:53:10 +0100 Subject: [PATCH] git: use XDG config directory --- modules/programs/git.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/programs/git.nix b/modules/programs/git.nix index c8dab199..3c07e799 100644 --- a/modules/programs/git.nix +++ b/modules/programs/git.nix @@ -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; }) ] );