home-manager: rework git config

This commit is contained in:
surtur 2023-07-10 04:27:55 +02:00
parent 54031d801c
commit d5a89f6ade
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI
3 changed files with 35 additions and 10 deletions

@ -0,0 +1,2 @@
surtur ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBtG6NCgdLHX4ztpfvYNRaslKWZcl6KdTc1DehVH4kAL
leo ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKwshTdBgLzwY4d8N7VainZCngH88OwvPGhZ6bm87rBO

@ -1,17 +1,15 @@
[user]
name = surtur
email = a_mirre@utb.cz
[commit] [commit]
gpgsign = true gpgsign = true
[oh-my-zsh]
hide-status = 1
[cola]
spellcheck = false
statusshowtotals = true
[color]
ui = auto
[tag] [tag]
gpgsign = true gpgsign = true
[gpg]
format = ssh
[gpg "ssh"]
allowedSignersFile = ~/.config/git/allowed_signers
[oh-my-zsh]
hide-status = 1
[color]
ui = auto
[pull] [pull]
ff = only ff = only
[filter "lfs"] [filter "lfs"]
@ -34,3 +32,4 @@
fuckit = reset --hard fuckit = reset --hard
[init] [init]
defaultBranch = development defaultBranch = development
templateDir = ~/.git-template

@ -113,6 +113,30 @@ in {
source = ./.config/fusuma/config.yml; source = ./.config/fusuma/config.yml;
}; };
".config/git/config-common" = {
source = ./.config/git/config;
};
# host-specific gitconfig.
".config/git/config.${hostName}" = {
text = ''
[user]
name = ${hostName}
email = wanderer@dotya.ml
signingkey = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBtG6NCgdLHX4ztpfvYNRaslKWZcl6KdTc1DehVH4kAL
'';
};
".config/git/config" = {
text = ''
[include]
path = ~/.config/git/config-common
[include]
path = ~/.config/git/config.${hostName}
'';
};
".config/git/allowed_signers" = {
source = ./.config/git/allowed_signers;
};
# begin zsh-related. # begin zsh-related.
".zshenv" = { ".zshenv" = {
source = ./.zshenv; source = ./.zshenv;