System/modules/linux/programs/gpg.nix

16 lines
430 B
Nix
Raw Normal View History

2022-06-23 02:57:41 -04:00
{ config, lib, pkgs, ... }:
let
np = config.nathan.programs;
nc = config.nathan.config;
in with lib; {
2022-06-23 02:57:41 -04:00
config = mkIf np.gpg {
# Enable ykpersonalize to work
services.udev.packages = [ pkgs.yubikey-personalization ];
# Enable smartcard service
services.pcscd.enable = true;
# install gnupg and yubikey personalization
environment.systemPackages = with pkgs; [ gnupg yubikey-personalization ];
2022-06-23 02:57:41 -04:00
};
}