From afc328b5ed818d7dd7f5b50816b7b5955e34593a Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Fri, 7 Apr 2023 23:28:16 +0200 Subject: [PATCH] git: Use uni email for specific directories --- users/simon/modules/git.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/users/simon/modules/git.nix b/users/simon/modules/git.nix index 3dac3d1..fbb8433 100644 --- a/users/simon/modules/git.nix +++ b/users/simon/modules/git.nix @@ -63,6 +63,18 @@ aliases = { ls = "log --stat"; }; + + includes = map + (condition: { + inherit condition; + contents = { + user.email = config.accounts.email.accounts.tu-dresden.address; + }; + }) + [ + "gitdir:~/Documents/uni/" + "gitdir:~/projects/uni/" + ]; }; programs.zsh.shellAliases =