mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
bed43b4461
The nitrokey group has been removed in #108319.
23 lines
380 B
Nix
23 lines
380 B
Nix
{ config, lib, pkgs, ... }:
|
|
let
|
|
|
|
cfg = config.hardware.nitrokey;
|
|
|
|
in
|
|
|
|
{
|
|
options.hardware.nitrokey = {
|
|
enable = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
description = ''
|
|
Enables udev rules for Nitrokey devices.
|
|
'';
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
services.udev.packages = [ pkgs.nitrokey-udev-rules ];
|
|
};
|
|
}
|