67 lines
1.2 KiB
Nix
67 lines
1.2 KiB
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./cliff.nix
|
|
];
|
|
|
|
programs.git = {
|
|
enable = true;
|
|
package = pkgs.gitFull;
|
|
|
|
delta.enable = true;
|
|
|
|
userName = "Noah Knegt";
|
|
userEmail = "personal@noahknegt.com";
|
|
|
|
signing = {
|
|
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB1ETzms5KNzQtgS0U/nfJjihMInKrcNR55tixI4ywvW";
|
|
signByDefault = true;
|
|
format = "ssh";
|
|
};
|
|
|
|
extraConfig = {
|
|
push = { autoSetupRemote = true; };
|
|
pull = { rebase = true; };
|
|
fetch = { prune = true; };
|
|
};
|
|
|
|
lfs.enable = true;
|
|
|
|
includes = [
|
|
{
|
|
condition = "gitdir:~/Repos/git.noahknegt.com/";
|
|
contents = {
|
|
user = {
|
|
email = "git@noahknegt.com";
|
|
};
|
|
|
|
commit = {
|
|
gpgSign = true;
|
|
};
|
|
|
|
tag = {
|
|
gpgSign = true;
|
|
};
|
|
};
|
|
}
|
|
{
|
|
condition = "gitdir:~/Repos/open-source/";
|
|
contents = {
|
|
user = {
|
|
email = "git@noahknegt.com";
|
|
signingKey = "~/.ssh/id_open_source.pub";
|
|
};
|
|
|
|
commit = {
|
|
gpgSign = true;
|
|
};
|
|
|
|
tag = {
|
|
gpgSign = true;
|
|
};
|
|
};
|
|
}
|
|
];
|
|
};
|
|
} |