nixpkgs/nixos/modules/hardware/ledger.nix

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

12 lines
255 B
Nix
Raw Normal View History

2019-02-14 01:19:56 +01:00
{ config, lib, pkgs, ... }:
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 ];
};
}