Files
setup-machines/home-manager/git/default.nix

63 lines
1.1 KiB
Nix

{ pkgs, ... }:
{
programs.git = {
enable = true;
package = pkgs.gitFull;
delta.enable = true;
userName = "Noah Knegt";
userEmail = "personal@noahknegt.com";
signing = {
key = "~/.ssh/id_ed25519.pub";
signByDefault = true;
};
extraConfig = {
gpg = { format = "ssh"; };
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;
};
};
}
];
};
}