From 0eb76d0ae036549203e117bf187450ee495a8953 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 14 Sep 2023 17:57:26 -0700 Subject: add ssh key from 1passowrd and sign commits --- home/profiles/git.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'home/profiles') diff --git a/home/profiles/git.nix b/home/profiles/git.nix index 6846a08..d559150 100644 --- a/home/profiles/git.nix +++ b/home/profiles/git.nix @@ -13,18 +13,17 @@ in userEmail = "franck@fcuny.net"; signing = { - key = "key::${sshPub.ykey-laptop}"; - signByDefault = false; + key = "key::${sshPub.op}"; + signByDefault = true; }; extraConfig = { core.whitespace = "trailing-space,space-before-tab"; color.ui = "true"; - diff.age.textconv = "${pkgs.age}/bin/age --identity ${config.home.homeDirectory}/.age/key.txt --decrypt"; - gpg.format = "ssh"; gpg.ssh.allowedSignersFile = "~/.ssh/allowed_signers"; + gpg.ssh.program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"; # abort if the remote branch does not match the local one push.default = "simple"; -- cgit 1.4.1