blob: 34e9a24f3753c5ee898ca92a77ca2ab10111e67b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# Backlight brightness control tool
{
config,
lib,
pkgs,
...
}:
let
cfg = config.system.brightnessctl;
in
{
options.system.brightnessctl = {
enable = lib.mkEnableOption "Enables brightnessctl.";
package = lib.mkOption {
type = lib.types.package;
readOnly = true;
default = pkgs.brightnessctl;
description = "The brightnessctl package to use.";
};
};
config = lib.mkIf cfg.enable {
home.packages = [ cfg.package ];
};
}
|