sisyphus/nixos/modules-old/utils/git/default.nix

27 lines
560 B
Nix
Raw Normal View History

2023-09-11 13:19:03 +02:00
{ config, lib, pkgs, ... }:
{
home-manager.users.tdpeuter = {
programs.git = {
enable = true;
2023-10-10 22:11:09 +02:00
userName = "Tibo De Peuter";
2023-09-11 13:19:03 +02:00
userEmail = "tibo.depeuter@gmail.com";
extraConfig = {
core.editor = "vim";
};
ignores = [
"*.swp"
];
includes = [
{
2023-10-10 22:11:09 +02:00
condition = "gitdir:~/university/"; # Trailing backslash is necessary!
contentSuffix = ".gitconfig";
contents = {
user.email = "tibo.depeuter@ugent.be";
};
2023-09-11 13:19:03 +02:00
}
];
};
};
}