about summary refs log tree commit diff
path: root/nixos/modules/hardware/ledger.nix
blob: 41abe74315a0f467a0eafc9cea72b055e899ed26 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{ config, lib, pkgs, ... }:

with lib;

let
  cfg = config.hardware.ledger;

in {
  options.hardware.ledger.enable = mkEnableOption "udev rules for Ledger devices";

  config = mkIf cfg.enable {
    services.udev.packages = [ pkgs.ledger-udev-rules ];
  };
}