From 777e321b15afa3cfd8331c2776949488e5529c60 Mon Sep 17 00:00:00 2001 From: ene Date: Sat, 25 Feb 2023 08:26:00 +0100 Subject: Fix(hosts): Add networkmanager for mammun --- hosts/mammun/networking.nix | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'hosts/mammun/networking.nix') diff --git a/hosts/mammun/networking.nix b/hosts/mammun/networking.nix index 05c7d100..1ebd0a7c 100644 --- a/hosts/mammun/networking.nix +++ b/hosts/mammun/networking.nix @@ -3,12 +3,14 @@ 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 = "mammun"; + networking = { + networkmanager = { + enable = true; + dns = "systemd-resolved"; + wifi = { + powersave = true; + }; + }; + hostName = "mammun"; + }; } -- cgit 1.4.1