From 2280414fc44af3f21df733b89ddb367c18bda5aa Mon Sep 17 00:00:00 2001 From: Soispha Date: Sat, 22 Apr 2023 18:32:49 +0200 Subject: Fix(hosts/apzu): Activate networkmanager --- hosts/apzu/networking.nix | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) (limited to 'hosts') diff --git a/hosts/apzu/networking.nix b/hosts/apzu/networking.nix index 9a780fff..79d693f9 100644 --- a/hosts/apzu/networking.nix +++ b/hosts/apzu/networking.nix @@ -1,14 +1,12 @@ -{ - config, - lib, - ... -}: { - # Enables DHCP on each ethernet and wireless interface. In case of scripted networking - # (the default) this is the recommended approach. When using systemd-networkd it's - # still possible to use this option, but it's recommended to use it in conjunction - # with explicit per-interface declarations with `networking.interfaces..useDHCP`. - networking.useDHCP = lib.mkDefault true; - # networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true; - # networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true; - networking.hostName = "apzu"; +{...}: { + networking = { + networkmanager = { + enable = true; + dns = "default"; + wifi = { + powersave = true; + }; + }; + hostName = "apzu"; + }; } -- cgit 1.4.1