brightnessctl for laptop

This commit is contained in:
cnst
2024-09-09 05:52:07 +02:00
parent 86eb663b68
commit 64f5025228
2 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
{
config,
lib,
pkgs,
...
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.modules.utils.brightnessctl;
in {
options = {
modules.utils.brightnessctl.enable = mkEnableOption "Enables brigthnessctl";
};
config = mkIf cfg.enable {
environment.systemPackages = [
pkgs.brightnessctl
];
};
}