diff options
author | Alex Rice <alexrice999@hotmail.co.uk> | 2019-04-14 10:53:43 +0100 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2019-11-03 14:42:43 +0100 |
commit | 66611546f0a57a4d8c7a36af07ad0105f8942d5d (patch) | |
tree | 805c9b290c59a54f23e1805d0b467736225246fd /nixos/modules/hardware | |
parent | 6928b5c12b217ccf0b6cd3da679ec88986640293 (diff) |
brillo: init at 1.4.8
Diffstat (limited to 'nixos/modules/hardware')
-rw-r--r-- | nixos/modules/hardware/brillo.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/nixos/modules/hardware/brillo.nix b/nixos/modules/hardware/brillo.nix new file mode 100644 index 000000000000..e970c9480998 --- /dev/null +++ b/nixos/modules/hardware/brillo.nix @@ -0,0 +1,22 @@ +{ config, lib, pkgs, ... }: + +with lib; +let + cfg = config.hardware.brillo; +in +{ + options = { + hardware.brillo = { + enable = mkEnableOption '' + Enable brillo in userspace. + This will allow brightness control from users in the video group. + ''; + }; + }; + + + config = mkIf cfg.enable { + services.udev.packages = [ pkgs.brillo ]; + environment.systemPackages = [ pkgs.brillo ]; + }; +} |