mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
git: use XDG config directory
This commit is contained in:
parent
7a9c873093
commit
356c0bf751
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue