nixos/modules/hardware/nitrokey/default.nix

21 lines
413 B
Nix
Raw Normal View History

2022-11-30 14:52:47 +01:00
{ config, lib, pkgs, ... }:
let
cfg = config.my.hardware.nitrokey;
in
{
options.my.hardware.nitrokey = {
enable = lib.mkEnableOption "pipewire configuration";
};
config = lib.mkIf cfg.enable {
services.udev.packages = [ pkgs.nitrokey-udev-rules ];
programs = {
ssh.startAgent = false;
gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
};
};
}