mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
11 lines
255 B
Nix
11 lines
255 B
Nix
{ config, lib, pkgs, ... }:
|
|
let
|
|
cfg = config.hardware.ledger;
|
|
|
|
in {
|
|
options.hardware.ledger.enable = lib.mkEnableOption "udev rules for Ledger devices";
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
services.udev.packages = [ pkgs.ledger-udev-rules ];
|
|
};
|
|
}
|