1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-21 08:59:20 +03:00
nixpkgs/nixos/modules/hardware/nitrokey.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
380 B
Nix
Raw Normal View History

2017-05-25 00:01:07 +02:00
{ config, lib, pkgs, ... }:
let
cfg = config.hardware.nitrokey;
in
{
options.hardware.nitrokey = {
enable = lib.mkOption {
type = lib.types.bool;
2017-05-25 00:01:07 +02:00
default = false;
description = ''
Enables udev rules for Nitrokey devices.
2017-05-25 00:01:07 +02:00
'';
};
};
config = lib.mkIf cfg.enable {
services.udev.packages = [ pkgs.nitrokey-udev-rules ];
2017-05-25 00:01:07 +02:00
};
}