diff --git a/config/git/config-work-nedeco b/config/git/config-work-nedeco new file mode 100644 index 0000000..afab7a5 --- /dev/null +++ b/config/git/config-work-nedeco @@ -0,0 +1,3 @@ +[user] + email = "d.kempkens@nedeco.de" + name = "Daniel Kempkens" diff --git a/programs/git.nix b/programs/git.nix index 7d4f38a..edb77fa 100644 --- a/programs/git.nix +++ b/programs/git.nix @@ -1,3 +1,8 @@ +{ config, ... }: + +let + config-work-nedeco = "${config.xdg.configHome}/git/config-work-nedeco"; +in { programs.git = { enable = true; @@ -50,8 +55,17 @@ ".DS_Store" ]; + includes = [ + { + path = "${config-work-nedeco}"; + condition = "gitdir:~/Code/Work/"; + } + ]; + delta.options = { theme = "Dracula"; }; }; + + xdg.configFile."${config-work-nedeco}".source = ../config/git/config-work-nedeco; }