feat(git): add enable option

This commit is contained in:
2026-05-22 10:57:51 +02:00
parent 1255083ad6
commit 6c9bbc27a0
5 changed files with 31 additions and 23 deletions

View File

@@ -8,11 +8,12 @@
{
options.git = {
enable = lib.mkEnableOption "git";
github.enable = lib.mkEnableOption "Github CLI";
gitlab.enable = lib.mkEnableOption "Gitlab CLI";
};
config = {
config = lib.mkIf config.git.enable {
programs.git.enable = true;
home.file = {
".gitconfig".source = dotsPath + "/.gitconfig";