+AZPIVERTRIEB01
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user