feat(teidesu): added git config

This commit is contained in:
alina 🌸 2024-04-30 23:51:23 +03:00
parent 4e08a53c33
commit 59292b38df
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI
2 changed files with 26 additions and 0 deletions

View file

@ -2,6 +2,7 @@
imports = [
inputs.nix-index-database.hmModules.nix-index
./zsh.nix
./git.nix
];
home.stateVersion = "23.11";

25
users/teidesu/git.nix Normal file
View file

@ -0,0 +1,25 @@
{ pkgs, ... }:
let
isDarwin = pkgs.stdenv.isDarwin;
in {
programs.git = {
enable = true;
userName = "alina sireneva";
userEmail = "alina@tei.su";
signing = {
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHXaJrbD5SHp3HDtRX7YxrjO7wpcoY/L41Oc78IdT/l4";
signByDefault = true;
};
extraConfig = {
gpg.format = "ssh";
"gpg \"ssh\"" = if isDarwin then {
program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign";
} else {
defaultKeyCommand = "ssh-add -L";
};
push.autoSetupRemote = "true";
};
};
}