nixos/hardware.brillo: remove with lib;

This commit is contained in:
Felix Buehler 2024-08-27 20:42:51 +02:00
parent 6c0e1c7a9d
commit 374ad8d316

View File

@ -1,20 +1,18 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.hardware.brillo;
in
{
options = {
hardware.brillo = {
enable = mkEnableOption ''
enable = lib.mkEnableOption ''
brillo in userspace.
This will allow brightness control from users in the video group
'';
};
};
config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {
services.udev.packages = [ pkgs.brillo ];
environment.systemPackages = [ pkgs.brillo ];
};