nixos/modules/hardware/nitrokey/default.nix
2023-01-12 23:16:33 +01:00

20 lines
413 B
Nix

{ config, lib, pkgs, ... }:
let
cfg = config.my.hardware.nitrokey;
in
{
options.my.hardware.nitrokey = {
enable = lib.mkEnableOption "nitrokey configuration";
};
config = lib.mkIf cfg.enable {
services.udev.packages = [ pkgs.nitrokey-udev-rules ];
programs = {
ssh.startAgent = false;
gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
};
};
}