Merge pull request #56220 from SeTSeR/master

acpilight: init at 1.1
This commit is contained in:
Elis Hirwing
2019-02-24 08:28:51 +01:00
committed by GitHub
4 changed files with 67 additions and 0 deletions
+24
View File
@@ -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 ];
};
}