patos/modules/network.nix
Daniel Lundin f406d0f98d
Some checks failed
ci/woodpecker/push/ci Pipeline failed
network: disable systemd-resolved fallback dns
This might not be the best idea, but serves as a reminder to consider
sensitive deployments in the future.
2024-11-10 14:29:41 +01:00

17 lines
324 B
Nix

{ config, ... }:
{
networking = {
useNetworkd = true;
hostName = "";
# Easy debugging.
firewall.enable = false;
};
services.resolved = {
fallbackDns = [ ]; # Disable fallback DNS. DNS will fail if resolvers are unconfigured
};
# Faster boot.
systemd.network.wait-online.enable = false;
}