2020-04-24 23:36:52 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.hardware.ledger;
|
|
|
|
|
|
|
|
in {
|
2024-04-21 15:54:59 +00:00
|
|
|
options.hardware.ledger.enable = mkEnableOption "udev rules for Ledger devices";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.udev.packages = [ pkgs.ledger-udev-rules ];
|
|
|
|
};
|
|
|
|
}
|