ctucx.git: nixfiles

ctucx' nixfiles

commit 8783b5fc80919f12c8a49269237626c41a37bd81
parent 4b33c0822e3b6a8b7e6fe8bdb2088b6e7b1f1afd
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sun, 13 Feb 2022 14:05:50 +0100

configurations/yubikey: add alias to relearn the gpg-card's serial-number
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/configurations/yubikey.nix b/configurations/yubikey.nix
@@ -36,6 +36,12 @@
           signByDefault = true;
         };
       };
+
+      bash = {
+        shellAliases = {
+          gpg-card-relearn = "gpg-connect-agent 'scd serialno' 'learn --force' /bye";
+        };
+      };
 	};
 
     services = {