From cb3b01a74c30d20cd7df3b5ca6b547e971eee9fc Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Wed, 15 Jan 2025 21:01:30 -0500 Subject: [PATCH] Blacklist hardward watchdog for AMD 700 chipset series for power savings. --- nix/configuration/hosts/odo/power_management.nix | 8 ++++++++ nix/configuration/roles/network/default.nix | 7 ++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/nix/configuration/hosts/odo/power_management.nix b/nix/configuration/hosts/odo/power_management.nix index 0973577..4668d74 100644 --- a/nix/configuration/hosts/odo/power_management.nix +++ b/nix/configuration/hosts/odo/power_management.nix @@ -48,4 +48,12 @@ "w- /sys/devices/system/cpu/cpufreq/policy14/energy_performance_preference - - - - power" "w- /sys/devices/system/cpu/cpufreq/policy15/energy_performance_preference - - - - power" ]; + + boot.extraModprobeConfig = '' + # Disable the hardware watchdog inside AMD 700 chipset series for power savings. + blacklist sp5100_tco + + # Sound power-saving was causing chat notifications to be inaudible. + # options snd_hda_intel power_save=1 + ''; } diff --git a/nix/configuration/roles/network/default.nix b/nix/configuration/roles/network/default.nix index e77582c..5a00641 100644 --- a/nix/configuration/roles/network/default.nix +++ b/nix/configuration/roles/network/default.nix @@ -26,7 +26,7 @@ ]; services.resolved = { enable = true; - dnssec = "true"; + # dnssec = "true"; domains = [ "~." ]; fallbackDns = [ ]; dnsovertls = "true"; @@ -61,4 +61,9 @@ ldns # for drill arp-scan # To find devices on the network ]; + + boot.extraModprobeConfig = '' + # Set wifi to US + options cfg80211 ieee80211_regdom=US + ''; }