mirror of
https://github.com/callumio/nixfiles.git
synced 2025-12-17 11:39:19 +00:00
legacy artemis config - needs refactor
This commit is contained in:
parent
aba3aceed8
commit
961d41b9bf
34 changed files with 1572 additions and 12 deletions
44
home/programs/git/default.nix
Normal file
44
home/programs/git/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
config,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
|
||||
userName = "Callum Leslie";
|
||||
userEmail = "git@cleslie.uk";
|
||||
signing.key = "D382C4AFEECEAA90";
|
||||
signing.signByDefault = true;
|
||||
|
||||
ignores = [".direnv/"];
|
||||
|
||||
includes = [
|
||||
{
|
||||
condition = "gitdir:~/repos/projects.cs.nott.ac.uk/";
|
||||
contents = {
|
||||
user = {
|
||||
email = "psycl6@nottingham.ac.uk";
|
||||
signingKey = "5A944DF89B6F65AC";
|
||||
};
|
||||
credential = {helper = "store";};
|
||||
};
|
||||
}
|
||||
];
|
||||
|
||||
extraConfig = {
|
||||
core = {
|
||||
longpaths = true;
|
||||
autocrlf = false;
|
||||
};
|
||||
|
||||
init = {defaultBranch = "main";};
|
||||
|
||||
push = {autoSetupRemote = true;};
|
||||
ghq = {root = "~/repos";};
|
||||
};
|
||||
|
||||
diff-so-fancy.enable = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue