From 6e8253fd8956846b4a5c288623960aec240bd84a Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 4 Mar 2024 14:23:27 +0100 Subject: [PATCH 1/4] talos: switch to kernel 6.7 --- hosts/talos/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/talos/default.nix b/hosts/talos/default.nix index 0376135..59f84dd 100644 --- a/hosts/talos/default.nix +++ b/hosts/talos/default.nix @@ -18,7 +18,7 @@ hardware.amdgpu.opencl = false; - boot.kernelPackages = pkgs.linuxPackages_6_6; + boot.kernelPackages = pkgs.linuxPackages_6_7; # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot = { From 2ec0602006736d9f7f9480bd0a1a08c9e08bf816 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 4 Mar 2024 16:04:50 +0100 Subject: [PATCH 2/4] talos: set Wi-Fi regulatory domain --- hosts/talos/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hosts/talos/default.nix b/hosts/talos/default.nix index 59f84dd..7377884 100644 --- a/hosts/talos/default.nix +++ b/hosts/talos/default.nix @@ -19,6 +19,9 @@ hardware.amdgpu.opencl = false; boot.kernelPackages = pkgs.linuxPackages_6_7; + # Set Wi-Fi regulatory domain. Currently always set to '00' (world), and could + # lead to bad Wi-Fi performance + boot.kernelParams = ["cfg80211.ieee80211_regdom=FR"]; # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot = { From 3d10eef3ac05e9c975286ad84d5c393dbce74ce9 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 4 Mar 2024 16:05:01 +0100 Subject: [PATCH 3/4] flake: override power-profiles-daemon 0.20 from unstable brings a lot of improvements over 0.13 from 23.11 for newer AMD laptops --- flake.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flake.nix b/flake.nix index 08bf4ef..476d7cc 100644 --- a/flake.nix +++ b/flake.nix @@ -93,6 +93,8 @@ inherit system; config.allowUnfree = true; }; + + power-profiles-daemon = self.unstable.power-profiles-daemon; }) agenix.overlays.default From 74d04c4ed413917b816eab5b847053890fc6da1a Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 4 Mar 2024 16:24:00 +0100 Subject: [PATCH 4/4] talos: explicitely enable wifi powersave this way I know what to toggle if I want to switch it off in the future --- hosts/talos/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hosts/talos/default.nix b/hosts/talos/default.nix index 7377884..e061b48 100644 --- a/hosts/talos/default.nix +++ b/hosts/talos/default.nix @@ -44,7 +44,10 @@ networking.domain = "alarsyo.net"; # Pick only one of the below networking options. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. - networking.networkmanager.enable = true; # Easiest to use and most distros use this by default. + networking.networkmanager = { + enable = true; + wifi.powersave = true; + } # Set your time zone. time.timeZone = "Europe/Paris";