about summary refs log tree commit diff
path: root/users/fcuny
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-02-13 13:17:13 -0800
committerFranck Cuny <franck@fcuny.net>2022-02-13 13:17:13 -0800
commit7f9c9bebd9843d3bcd70ffb492f83a924c2734c9 (patch)
tree42a6b2c537a9f7433870a075d47fe8945ed4af39 /users/fcuny
parenti3: delete and let's switch over to sway/wayland (diff)
downloadworld-7f9c9bebd9843d3bcd70ffb492f83a924c2734c9.tar.gz
gpg: set default key
And use the default key for signing with git.
Diffstat (limited to 'users/fcuny')
-rw-r--r--users/fcuny/cli/git.nix4
-rw-r--r--users/fcuny/desktop/trust/pgp.nix3
2 files changed, 7 insertions, 0 deletions
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";
+    };
   };
 }