feat: Add sensor support for Dell laptops

This commit is contained in:
2025-12-03 20:03:06 -05:00
committed by Hunter Halloran
parent 68032f6afb
commit 1992407cb1

21
sw.nix
View File

@@ -33,6 +33,7 @@
htop
binutils
man
lm_sensors
oh-my-posh
zsh
git
@@ -62,10 +63,6 @@
enableSSHSupport = true;
};
# Power
services.tlp.enable = true;
services.auto-cpufreq.enable = true;
# Bluetooth
hardware.bluetooth.enable = true;
services.blueman.enable = true;
@@ -76,7 +73,7 @@
# Flatpak + portals
services.flatpak.enable = true;
xdg.portal.enable = true;
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-kde ];
xdg.portal.extraPortals = [ pkgs.kdePackages.xdg-desktop-portal-kde ];
# Browsers
programs.chromium.enable = true;
@@ -86,17 +83,17 @@
programs.virt-manager.enable = true;
# Sensors
services.hwmon.enable = true;
services.thermald.enable = true;
programs.sensors.enable = true;
# Suspend / logind behavior
services.upower.enable = true;
services.logind.lidSwitch = "suspend";
services.logind.extraConfig = ''
HandleLidSwitchExternalPower=suspend
HandleLidSwitchDocked=ignore
'';
services.logind.settings = {
Login = {
HandleLidSwitch = "suspend";
HandleLidSwitchExternalPower = "suspend";
HandleLidSwitchDocked = "ignore";
};
};
# Enable the OpenSSH daemon.
services.openssh.enable = true;