diff options
author | Aaron Andersen <aaron@fosslib.net> | 2021-11-02 22:55:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-02 22:55:41 -0400 |
commit | fc98560b99c4249351fe41ab6035c943bc15e92d (patch) | |
tree | 7fdbf0c2927e6112540129b852fa790a1ba7ba1a /nixos/modules | |
parent | 00021b8642c065a4da8a8d947211b431e1b52e8d (diff) | |
parent | 1526fe10ced29e5202c40c538cd210b24e4a8d84 (diff) | |
download | nixpkgs-fc98560b99c4249351fe41ab6035c943bc15e92d.tar nixpkgs-fc98560b99c4249351fe41ab6035c943bc15e92d.tar.gz nixpkgs-fc98560b99c4249351fe41ab6035c943bc15e92d.tar.bz2 nixpkgs-fc98560b99c4249351fe41ab6035c943bc15e92d.tar.lz nixpkgs-fc98560b99c4249351fe41ab6035c943bc15e92d.tar.xz nixpkgs-fc98560b99c4249351fe41ab6035c943bc15e92d.tar.zst nixpkgs-fc98560b99c4249351fe41ab6035c943bc15e92d.zip |
Merge pull request #142433 from aanderse/flirc
flirc: init at 3.24.3
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/hardware/flirc.nix | 12 | ||||
-rw-r--r-- | nixos/modules/module-list.nix | 1 |
2 files changed, 13 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 ]; + }; +} diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index 0dbdda68d3c..f47b56e7409 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -49,6 +49,7 @@ ./hardware/digitalbitbox.nix ./hardware/device-tree.nix ./hardware/gkraken.nix + ./hardware/flirc.nix ./hardware/i2c.nix ./hardware/sensor/hddtemp.nix ./hardware/sensor/iio.nix |