mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 20:55:31 +03:00
nixos/flirc: init module
This commit is contained in:
parent
13396c4a9a
commit
1526fe10ce
2 changed files with 13 additions and 0 deletions
12
nixos/modules/hardware/flirc.nix
Normal file
12
nixos/modules/hardware/flirc.nix
Normal file
|
@ -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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -49,6 +49,7 @@
|
||||||
./hardware/digitalbitbox.nix
|
./hardware/digitalbitbox.nix
|
||||||
./hardware/device-tree.nix
|
./hardware/device-tree.nix
|
||||||
./hardware/gkraken.nix
|
./hardware/gkraken.nix
|
||||||
|
./hardware/flirc.nix
|
||||||
./hardware/i2c.nix
|
./hardware/i2c.nix
|
||||||
./hardware/sensor/hddtemp.nix
|
./hardware/sensor/hddtemp.nix
|
||||||
./hardware/sensor/iio.nix
|
./hardware/sensor/iio.nix
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue