summaryrefslogtreecommitdiff
path: root/modules/gnupg.nix
diff options
context:
space:
mode:
authorGrigory Shipunov2022-05-25 19:27:42 +0200
committerGrigory Shipunov2022-05-25 19:27:42 +0200
commita9532469718f53912a66073dfae12a5bcf8e7ffa (patch)
treeb35755f1a07b3d9798f12d5329c83f97145b5800 /modules/gnupg.nix
init
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;
+ };
+}