summaryrefslogtreecommitdiff
path: root/modules/gnupg.nix
diff options
context:
space:
mode:
authorGrisha Shipunov2024-12-31 13:52:57 +0000
committerGrisha Shipunov2024-12-31 13:52:57 +0000
commit50066a4d208b83e63d5ebb4bc64e740e78deae59 (patch)
treeb09004fb2121e2ffb4d46bb45ff65b024749d7e2 /modules/gnupg.nix
parent677abb734403d4f412dbbdc83f372cc606d9d519 (diff)
revert toaster
Diffstat (limited to 'modules/gnupg.nix')
-rw-r--r--modules/gnupg.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/gnupg.nix b/modules/gnupg.nix
new file mode 100644
index 0000000..6d52e66
--- /dev/null
+++ b/modules/gnupg.nix
@@ -0,0 +1,18 @@
+{ config, pkgs, ... }:
+
+{
+ environment.systemPackages = with pkgs; [
+ gnupg
+ opensc
+
+ yubikey-personalization-gui
+ ];
+
+ # smartcard support
+ services.pcscd.enable = false;
+ hardware.gpgSmartcards.enable = true;
+ programs.gnupg.agent = {
+ enable = true;
+ enableSSHSupport = true;
+ };
+}