mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
4cae259fce
Use pname instead of manual adding version to package name
24 lines
470 B
Nix
24 lines
470 B
Nix
{ 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 ];
|
|
};
|
|
}
|