From 4cae259fceeb2728925ed01eab76302d1f68a0e2 Mon Sep 17 00:00:00 2001 From: Sergey Makarov Date: Fri, 22 Feb 2019 22:45:16 +0300 Subject: acpilight: init at 1.1 Use pname instead of manual adding version to package name --- nixos/modules/hardware/acpilight.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 nixos/modules/hardware/acpilight.nix (limited to 'nixos/modules/hardware') diff --git a/nixos/modules/hardware/acpilight.nix b/nixos/modules/hardware/acpilight.nix new file mode 100644 index 000000000000..34e8a2220965 --- /dev/null +++ b/nixos/modules/hardware/acpilight.nix @@ -0,0 +1,24 @@ +{ config, lib, pkgs, ... }: + +with lib; +let + cfg = config.hardware.acpilight; +in +{ + options = { + hardware.acpilight = { + enable = mkOption { + default = false; + type = types.bool; + description = '' + Enable acpilight. + This will allow brightness control via xbacklight from users in the video group + ''; + }; + }; + }; + + config = mkIf cfg.enable { + services.udev.packages = with pkgs; [ acpilight ]; + }; +} -- cgit 1.4.1