From a9532469718f53912a66073dfae12a5bcf8e7ffa Mon Sep 17 00:00:00 2001 From: Grigory Shipunov Date: Wed, 25 May 2022 19:27:42 +0200 Subject: init --- modules/gnupg.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 modules/gnupg.nix (limited to 'modules/gnupg.nix') 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; + }; +} -- cgit v1.3.1