Janky "fix" to make 1pass git/ssh work
This commit is contained in:
parent
782f76ba11
commit
241347b926
3 changed files with 25 additions and 3 deletions
17
homes/floppydisk/git.nix
Normal file
17
homes/floppydisk/git.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
nixosConfig,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
programs.git = {
|
||||
extraConfig = {
|
||||
init.defaultBranch = "master";
|
||||
gpg.format = "ssh";
|
||||
gpg."ssh".program = "${pkgs._1password-gui}/bin/op-ssh-sign";
|
||||
commit.gpgsign = true;
|
||||
user.signingkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDcwriIE5K8SVewvVdgNvmhtAVvJPtMnNkkS4ETi5YgJ";
|
||||
push.autoSetupRemote = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in a new issue