Skip to content

Commit ead0b1a

Browse files
committed
cake
1 parent a7ebc38 commit ead0b1a

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

desktop/hardware-configuration.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
"drm.panic_screen=qr_code"
3434
];
3535
kernel.sysctl."kernel.sysrq" = 1;
36+
kernel.sysctl."net.core.default_qdisc" = "cake";
37+
kernel.sysctl."net.ipv4.tcp_congestion_control" = "bbr";
3638
};
3739

3840
fileSystems."/games" = {

modules/system/networking.nix

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
_:
1+
{pkgs, ...}:
22
{
33
networking = {
44
networkmanager = {
@@ -45,4 +45,14 @@ _:
4545
trustedInterfaces = [ "virbr0" "tailscale0" ];
4646
};
4747
};
48+
systemd.services.wifi-performance = {
49+
description = "Disable Wi-Fi Power Save";
50+
wantedBy = [ "multi-user.target" ];
51+
after = [ "network.target" ];
52+
serviceConfig = {
53+
Type = "oneshot";
54+
ExecStart = "${pkgs.iw}/bin/iw dev wlan0 set power_save off";
55+
RemainAfterExit = true;
56+
};
57+
};
4858
}

0 commit comments

Comments
 (0)