159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
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 ];
|
|
};
|
|
}
|