From 586df7389b043855d64ec8b7360a79a199156ef8 Mon Sep 17 00:00:00 2001 From: Daniel Patterson Date: Thu, 20 Jul 2023 00:12:55 +0100 Subject: [PATCH] More network tweaks --- hosts/common/default.nix | 3 --- hosts/pingbox/configuration.nix | 4 ++++ hosts/pingbox/hardware-configuration.nix | 4 ---- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/hosts/common/default.nix b/hosts/common/default.nix index c39f112..698a0d1 100644 --- a/hosts/common/default.nix +++ b/hosts/common/default.nix @@ -49,9 +49,6 @@ in { 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; console = { diff --git a/hosts/pingbox/configuration.nix b/hosts/pingbox/configuration.nix index a93b66e..30c536a 100644 --- a/hosts/pingbox/configuration.nix +++ b/hosts/pingbox/configuration.nix @@ -33,6 +33,10 @@ networking = { hostName = "pingbox"; interfaces.wlp170s0.useDHCP = true; + wireless = { + enable = true; + userControlled.enable = true; + }; }; services = { diff --git a/hosts/pingbox/hardware-configuration.nix b/hosts/pingbox/hardware-configuration.nix index 9b7cccf..089123f 100644 --- a/hosts/pingbox/hardware-configuration.nix +++ b/hosts/pingbox/hardware-configuration.nix @@ -29,10 +29,6 @@ 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; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";