summaryrefslogtreecommitdiff
path: root/modules/gnupg.nix
diff options
context:
space:
mode:
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..57ca9fd
--- /dev/null
+++ b/modules/gnupg.nix
@@ -0,0 +1,18 @@
+{ config, pkgs, ... }:
+
+{
+ environment.systemPackages = with pkgs; [
+ gnupg
+ opensc
+
+ yubioath-desktop
+ ];
+
+ # smartcard support
+ services.pcscd.enable = false;
+ hardware.gpgSmartcards.enable = true;
+ programs.gnupg.agent = {
+ enable = true;
+ enableSSHSupport = true;
+ };
+}