1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-18 15:39:46 +03:00
nixpkgs/nixos/modules/hardware/ledger.nix

18 lines
263 B
Nix
Raw Normal View History

{
config,
lib,
pkgs,
...
}:
2019-02-14 01:19:56 +01:00
let
cfg = config.hardware.ledger;
in
{
options.hardware.ledger.enable = lib.mkEnableOption "udev rules for Ledger devices";
2019-02-14 01:19:56 +01:00
config = lib.mkIf cfg.enable {
2019-02-14 01:19:56 +01:00
services.udev.packages = [ pkgs.ledger-udev-rules ];
};
}