ctucx.git: nixfiles

ctucx' nixfiles

commit 3ad56943659b9d5e146b550bceb7d76bdadc0572
parent f037bd9844bbf0e9724706de87741fbe480d8c9c
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sat, 7 May 2022 13:49:06 +0200

configurations/yubikey: set gpg-homedir
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/configurations/yubikey.nix b/configurations/yubikey.nix
@@ -36,6 +36,12 @@
     programs = {
       gpg = {
         enable   = true;
+        homedir  = (
+          if pkgs.stdenv.isLinux then
+            "/home/leah/.gnupg"
+          else
+            "/Users/leah/.gnupg"
+        );
 
         settings = {
           keyserver = "hkps://keyserver.ubuntu.com:443";