hosts/ni/networking/setup: enable resolved

This commit is contained in:
Gabriel Arazas 2023-12-23 20:42:07 +08:00
parent b0cc57f014
commit 81443a5a9c
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -60,12 +60,16 @@ in
}; };
}; };
# Your internal network. # Set resolved for DNS resolutions.
services.resolved.domains = [ services.resolved = {
enable = true;
llmnr = "true";
domains = [
"~plover.foodogsquared.one" "~plover.foodogsquared.one"
"~0.27.172.in-addr.arpa" "~0.27.172.in-addr.arpa"
"~0.28.172.in-addr.arpa" "~0.28.172.in-addr.arpa"
]; ];
};
} }
(lib.mkIf (cfg.setup == "networkd") { (lib.mkIf (cfg.setup == "networkd") {
@ -79,14 +83,7 @@ in
dhcpcd.enable = false; dhcpcd.enable = false;
}; };
# Enable systemd-resolved. This is mostly setup by `systemd.network.enable` # Setting up our network manager of choice.
# by we're being explicit just to be safe.
services.resolved = {
enable = true;
llmnr = "true";
};
# Combining my ethernet and wireless network interfaces.
systemd.network.enable = true; systemd.network.enable = true;
# Setting up the bond devices. # Setting up the bond devices.