configure git via home-manager
contact addresses have been defined in non-public submodule
This commit is contained in:
parent
1c715f0cd3
commit
d238392d5a
|
@ -321,4 +321,54 @@ in
|
||||||
services.lorri.enable = true;
|
services.lorri.enable = true;
|
||||||
|
|
||||||
fonts.fontconfig.enable = true;
|
fonts.fontconfig.enable = true;
|
||||||
|
|
||||||
|
programs.git =
|
||||||
|
let contacts = import ./secrets/contacts.nix;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
enable = true;
|
||||||
|
includes = [
|
||||||
|
{
|
||||||
|
condition = "gitdir:~/Seafile/Studium/";
|
||||||
|
contents = {
|
||||||
|
user.name = contacts.realName;
|
||||||
|
user.email = contacts.uniMail;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
condition = "gitdir:~/src/nixpkgs/";
|
||||||
|
contents = {
|
||||||
|
user.name = "Trolli Schmittlauch";
|
||||||
|
user.email = contacts.nixosMail;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
]
|
||||||
|
# set default name for several other common locations
|
||||||
|
++ map
|
||||||
|
(dir: {
|
||||||
|
condition = "gitdir:${dir}";
|
||||||
|
contents = {
|
||||||
|
user.name = "Trolli Schmittlauch";
|
||||||
|
user.email = contacts.mainMail;
|
||||||
|
};
|
||||||
|
}) [ "~/src/" "~/bin/" "~/tmp/" "~/nixconfigs/" ];
|
||||||
|
extraConfig = {
|
||||||
|
credential.helper = "cache";
|
||||||
|
push.default = "simple";
|
||||||
|
diff.tool = "vimdiff";
|
||||||
|
merge.tool = "vimdiff";
|
||||||
|
core.excludesfile = toString (pkgs.writeText ".gitignore_global" ''
|
||||||
|
# Direnv stuff
|
||||||
|
.direnv
|
||||||
|
.envrc
|
||||||
|
# Editor files #
|
||||||
|
################
|
||||||
|
*~
|
||||||
|
*.swp
|
||||||
|
*.swo
|
||||||
|
'');
|
||||||
|
};
|
||||||
|
lfs.enable = true;
|
||||||
|
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit de07de8b76dac718ceef1258738ba2dd8fc3d3c2
|
Subproject commit 068a4759e72948284c3de85d20a780723278f8b8
|
Loading…
Reference in a new issue