aboutsummaryrefslogtreecommitdiffstats
path: root/modules/system/brightnessctl/default.nix
blob: af5746ad32779a3294d817a834d403d3be4d9ef3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Backlight brightness control tool
{
  config,
  lib,
  pkgs,
  ...
}:
{
  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 config.system.brightnessctl.enable {
    home.packages = [ config.system.brightnessctl.package ];
  };
}