about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2022-02-14 23:59:17 +0900
committersefidel <contact@sefidel.net>2022-02-14 23:59:17 +0900
commit46715ed381535bdd38e516467e8af4ec74d977d9 (patch)
tree4bf82cdc10050e398526cafa894d6e9e4364455f /nixos
parent579ba4120118effb79d6d37dd34b620cb0af34e2 (diff)
downloadnixrc-46715ed381535bdd38e516467e8af4ec74d977d9.tar.gz
nixrc-46715ed381535bdd38e516467e8af4ec74d977d9.zip
feat: setup pam-gnupg
Diffstat (limited to 'nixos')
-rw-r--r--nixos/alpha/configuration.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/nixos/alpha/configuration.nix b/nixos/alpha/configuration.nix
index 79b3e81..9f770b4 100644
--- a/nixos/alpha/configuration.nix
+++ b/nixos/alpha/configuration.nix
@@ -8,6 +8,18 @@
     doas.enable = true;
     doas.wheelNeedsPassword = false;
     sudo.wheelNeedsPassword = false;
+
+    pam.services = {
+      login.gnupg.enable = true;
+      login.gnupg.storeOnly = true;
+
+      greetd.gnupg.enable = true;
+      greetd.gnupg.storeOnly = true;
+
+      swaylock.gnupg.enable = true;
+      i3lock.gnupg.enable = true;
+      i3lock-color.gnupg.enable = true;
+    };
   };
 
   boot.kernelPackages = pkgs.linuxPackages_5_15;