+tuxedo backlight

This commit is contained in:
m3tam3re
2025-09-08 04:40:19 +02:00
parent d5e13e2099
commit bab10c3273
7 changed files with 54 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
{
{pkgs, ...}: {
hardware.nvidia = {
prime = {
offload.enable = false;
@@ -16,11 +16,33 @@
dynamicBoost.enable = true;
nvidiaSettings = true;
};
hardware.tuxedo-drivers.enable = true;
hardware.bluetooth.enable = true;
hardware.keyboard.zsa.enable = true;
hardware.graphics.enable = true;
services.hardware.bolt.enable = true;
services.auto-cpufreq.enable = true;
services.tlp.enable = true;
services.tlp = {
enable = true;
settings = {
START_CHARGE_THRESH_BAT0 = 75;
STOP_CHARGE_THRESH_BAT0 = 80;
};
};
environment.systemPackages = with pkgs; [
tuxedo-backlight
];
security.sudo.extraRules = [
{
users = ["@wheel"];
commands = [
{
command = "/run/current-system/sw/bin/set-backlight";
options = ["NOPASSWD"];
}
];
}
];
}