Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions modules/powerdevil.nix
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,22 @@ let
The brightness to set the display to in this mode.
'';
};
dimKeyboard = {
enable = lib.mkOption {
type = with lib.types; nullOr bool;
default = null;
example = false;
description = "Whether to enable keyboard backlight dimming.";
};
};
keyboardBrightness = lib.mkOption {
type = with lib.types; nullOr (ints.between 0 100);
default = null;
example = 10;
description = ''
The brightness to set the keyboard backlight to in this mode.
'';
};
powerProfile = lib.mkOption {
type =
with lib.types;
Expand Down Expand Up @@ -226,6 +242,12 @@ let
if (cfg.powerdevil.${optionsName}.displayBrightness == null) then null else true
);
};
"${cfgSectName}/Keyboard" = {
KeyboardBrightness = cfg.powerdevil.${optionsName}.keyboardBrightness;
UseProfileSpecificKeyboardBrightness = (
if (cfg.powerdevil.${optionsName}.keyboardBrightness == null) then null else true
);
};
"${cfgSectName}/Performance" = {
PowerProfile = cfg.powerdevil.${optionsName}.powerProfile;
};
Expand Down