1 { config, lib, pkgs, ... }:
4 cfg = config.hardware.nitrokey;
9 options.hardware.nitrokey = {
10 enable = lib.mkOption {
11 type = lib.types.bool;
14 Enables udev rules for Nitrokey devices. By default grants access
15 to users in the "nitrokey" group. You may want to install the
16 nitrokey-app package, depending on your device and needs.
21 config = lib.mkIf cfg.enable {
22 services.udev.packages = [ pkgs.libnitrokey ];