aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--home/profiles/base/default.nix7
-rw-r--r--nixos/alpha/configuration.nix12
2 files changed, 19 insertions, 0 deletions
diff --git a/home/profiles/base/default.nix b/home/profiles/base/default.nix
index 539823c..c27a861 100644
--- a/home/profiles/base/default.nix
+++ b/home/profiles/base/default.nix
@@ -250,6 +250,9 @@ in
defaultCacheTtlSsh = 3600;
maxCacheTtl = 86400;
maxCacheTtlSsh = 86400;
+ extraConfig = ''
+ allow-preset-passphrase
+ '';
};
swayidle = {
@@ -275,5 +278,9 @@ in
longitude = "127.2";
};
};
+
+ home.file.".pam-gnupg".text = ''
+ 77FE99210D6D1175076B284229CE8818A7112C9B
+ '';
};
}
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;