nixos/hardware.acpilight: remove with lib;

This commit is contained in:
Felix Buehler 2024-08-27 20:42:51 +02:00
parent 413bd7cb81
commit be8d4ec87e

View File

@ -1,15 +1,13 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib;
let let
cfg = config.hardware.acpilight; cfg = config.hardware.acpilight;
in in
{ {
options = { options = {
hardware.acpilight = { hardware.acpilight = {
enable = mkOption { enable = lib.mkOption {
default = false; default = false;
type = types.bool; type = lib.types.bool;
description = '' description = ''
Enable acpilight. Enable acpilight.
This will allow brightness control via xbacklight from users in the video group This will allow brightness control via xbacklight from users in the video group
@ -18,7 +16,7 @@ in
}; };
}; };
config = mkIf cfg.enable { config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [ acpilight ]; environment.systemPackages = with pkgs; [ acpilight ];
services.udev.packages = with pkgs; [ acpilight ]; services.udev.packages = with pkgs; [ acpilight ];
}; };