diff options
Diffstat (limited to 'nixos/modules/hardware/flirc.nix')
-rw-r--r-- | nixos/modules/hardware/flirc.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/nixos/modules/hardware/flirc.nix b/nixos/modules/hardware/flirc.nix new file mode 100644 index 00000000000..94ec715b9fa --- /dev/null +++ b/nixos/modules/hardware/flirc.nix @@ -0,0 +1,12 @@ +{ config, lib, pkgs, ... }: +let + cfg = config.hardware.flirc; +in +{ + options.hardware.flirc.enable = lib.mkEnableOption "software to configure a Flirc USB device"; + + config = lib.mkIf cfg.enable { + environment.systemPackages = [ pkgs.flirc ]; + services.udev.packages = [ pkgs.flirc ]; + }; +} |