From 7f9c9bebd9843d3bcd70ffb492f83a924c2734c9 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 13 Feb 2022 13:17:13 -0800 Subject: gpg: set default key And use the default key for signing with git. --- users/fcuny/cli/git.nix | 4 ++++ users/fcuny/desktop/trust/pgp.nix | 3 +++ 2 files changed, 7 insertions(+) diff --git a/users/fcuny/cli/git.nix b/users/fcuny/cli/git.nix index d27d7a0..427060f 100644 --- a/users/fcuny/cli/git.nix +++ b/users/fcuny/cli/git.nix @@ -15,6 +15,10 @@ }; userName = "Franck Cuny"; userEmail = "franck@fcuny.net"; + signing = { + key = config.programs.gpg.settings.default-key; + signByDefault = true; + }; extraConfig = { "credential \"https://github.com\"" = { username = "fcuny"; diff --git a/users/fcuny/desktop/trust/pgp.nix b/users/fcuny/desktop/trust/pgp.nix index 0d59837..79ed7dd 100644 --- a/users/fcuny/desktop/trust/pgp.nix +++ b/users/fcuny/desktop/trust/pgp.nix @@ -9,6 +9,9 @@ programs.gpg = { enable = true; + settings = { + default-key = "23348B57F01D4234B5CFBA0923208AC01EB6EEA1"; + }; }; } -- cgit 1.4.1