feat(teidesu): added git config
This commit is contained in:
parent
4e08a53c33
commit
59292b38df
2 changed files with 26 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
inputs.nix-index-database.hmModules.nix-index
|
inputs.nix-index-database.hmModules.nix-index
|
||||||
./zsh.nix
|
./zsh.nix
|
||||||
|
./git.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home.stateVersion = "23.11";
|
home.stateVersion = "23.11";
|
||||||
|
|
25
users/teidesu/git.nix
Normal file
25
users/teidesu/git.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue