+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"];
}
];
}
];
}

View File

@@ -1,6 +1,7 @@
{pkgs, ...}: {
services.udev.extraRules = ''
SUBSYSTEM=="usb", MODE="0666"
SUBSYSTEM=="leds", KERNEL=="rgb:kbd_backlight*", ACTION=="add", RUN+="${pkgs.coreutils}/bin/chmod a+w /sys/class/leds/%k/multi_intensity"
'';
environment.systemPackages = with pkgs; [
zsa-udev-rules

View File

@@ -10,7 +10,7 @@
};
NO = {
configFile = config.age.secrets.wg-NO.path;
autostart = true;
autostart = false;
};
US = {
configFile = config.age.secrets.wg-US.path;

View File

@@ -15,8 +15,4 @@
./vaultwarden.nix
./wastebin.nix
];
services = {
desktopManager.gnome.enable = true;
displayManager.gdm.enable = true;
};
}