2022-06-23 02:57:41 -04:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
|
|
np = config.nathan.programs;
|
|
|
|
nc = config.nathan.config;
|
2022-10-13 22:13:43 -04:00
|
|
|
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
|
2022-10-13 22:13:43 -04:00
|
|
|
environment.systemPackages = with pkgs; [ gnupg yubikey-personalization ];
|
2022-06-23 02:57:41 -04:00
|
|
|
};
|
|
|
|
}
|