From 81443a5a9cc8e5d70108cd883969b89c925f6240 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sat, 23 Dec 2023 20:42:07 +0800 Subject: [PATCH] hosts/ni/networking/setup: enable resolved --- hosts/ni/modules/networking/setup.nix | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/hosts/ni/modules/networking/setup.nix b/hosts/ni/modules/networking/setup.nix index 1ffcdfce..27d8a7e9 100644 --- a/hosts/ni/modules/networking/setup.nix +++ b/hosts/ni/modules/networking/setup.nix @@ -60,12 +60,16 @@ in }; }; - # Your internal network. - services.resolved.domains = [ - "~plover.foodogsquared.one" - "~0.27.172.in-addr.arpa" - "~0.28.172.in-addr.arpa" - ]; + # Set resolved for DNS resolutions. + services.resolved = { + enable = true; + llmnr = "true"; + domains = [ + "~plover.foodogsquared.one" + "~0.27.172.in-addr.arpa" + "~0.28.172.in-addr.arpa" + ]; + }; } (lib.mkIf (cfg.setup == "networkd") { @@ -79,14 +83,7 @@ in dhcpcd.enable = false; }; - # Enable systemd-resolved. This is mostly setup by `systemd.network.enable` - # by we're being explicit just to be safe. - services.resolved = { - enable = true; - llmnr = "true"; - }; - - # Combining my ethernet and wireless network interfaces. + # Setting up our network manager of choice. systemd.network.enable = true; # Setting up the bond devices.