add networkmanager to fix steam startup times

This commit is contained in:
Noah Masur 2023-08-08 22:13:24 -04:00
parent 05a8f4a49b
commit 5561c85b43
3 changed files with 6 additions and 2 deletions

View File

@ -22,6 +22,10 @@
];
# Seems like NetworkManager can help speed up Steam launch
# https://www.reddit.com/r/archlinux/comments/qguhco/steam_startup_time_arch_1451_seconds_fedora_34/hi8opet/
networking.networkmanager.enable = true;
};
}

View File

@ -2,7 +2,7 @@
config = lib.mkIf config.physical {
networking.useDHCP = true;
networking.useDHCP = !config.networking.networkmanager.enable;
networking.firewall.allowPing = lib.mkIf config.server true;

View File

@ -3,7 +3,7 @@
config = lib.mkIf (config.physical && pkgs.stdenv.isLinux) {
# Enables wireless support via wpa_supplicant.
networking.wireless.enable = true;
networking.wireless.enable = !config.networking.networkmanager.enable;
# Allows the user to control the WiFi settings.
networking.wireless.userControlled.enable = true;