More network tweaks

This commit is contained in:
2023-07-20 00:12:55 +01:00
parent 44b3a8c9ab
commit 586df7389b
3 changed files with 4 additions and 7 deletions

View File

@@ -49,9 +49,6 @@ in {
defaultLocale = "en_GB.UTF-8"; defaultLocale = "en_GB.UTF-8";
}; };
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config
# replicates the default behaviour.
networking.useDHCP = true; networking.useDHCP = true;
console = { console = {

View File

@@ -33,6 +33,10 @@
networking = { networking = {
hostName = "pingbox"; hostName = "pingbox";
interfaces.wlp170s0.useDHCP = true; interfaces.wlp170s0.useDHCP = true;
wireless = {
enable = true;
userControlled.enable = true;
};
}; };
services = { services = {

View File

@@ -29,10 +29,6 @@
swapDevices = []; swapDevices = [];
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config
# replicates the default behaviour.
networking.useDHCP = lib.mkDefault false;
networking.interfaces.wlp170s0.useDHCP = lib.mkDefault true; networking.interfaces.wlp170s0.useDHCP = lib.mkDefault true;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";