+AZPIVERTRIEB01

This commit is contained in:
2026-03-26 13:57:30 +01:00
parent 745f85e8b8
commit a9329c8adc
7 changed files with 93 additions and 22 deletions

View File

@@ -15,7 +15,7 @@
boot.loader.systemd-boot.enable = true;
boot.initrd.kernelModules = ["amdgpu" "hid_asus"];
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelParams = ["pcie_aspm=off"];
boot.kernelParams = ["pcie_aspm=off" "pcie_port_pm=off"];
boot.extraModprobeConfig = ''
options hid_asus enable_touchpad=1
options mt7925e disable_aspm=1
@@ -25,7 +25,17 @@
security.polkit.enable = true;
security.pam.services.gdm.enableGnomeKeyring = true;
networking = {
wireless.iwd.enable = true;
wireless.iwd = {
enable = true;
settings = {
Settings = {
Timers = "DefaultRoamThreshold=30";
};
General = {
AddressRandomization = "network";
};
};
};
networkmanager = {
enable = true;
wifi = {
@@ -35,7 +45,24 @@
};
hostName = "AZLT124-L";
};
systemd.services.disable-wifi-powersave = {
description = "Disable WiFi power save";
after = ["network-online.target" "iwd.service"];
wants = ["network-online.target"];
wantedBy = ["multi-user.target"];
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
ExecStart = ''
${pkgs.bash}/bin/bash -c 'for i in {1..30}; do \
${pkgs.iw}/bin/iw dev wlan0 set power_save off 2>/dev/null && exit 0; \
sleep 1; \
done; exit 1'
'';
Restart = "on-failure";
RestartSec = "10s";
};
};
# Define your hostname.
# warp-terminal update fix
# networking.extraHosts = ''