nix/module/Brightness.nix

14 lines
236 B
Nix
Raw Normal View History

{
2024-11-04 04:37:29 +03:00
lib,
config,
...
}: let
cfg = config.module.desktop.brightness;
in {
options.module.desktop.brightness.enable = lib.mkEnableOption "the brightness control.";
2024-06-25 04:04:39 +03:00
2024-11-04 04:37:29 +03:00
config = lib.mkIf cfg.enable {
programs.light.enable = true;
};
2024-03-28 12:01:06 +03:00
}