nixos-config/modules/system/devices/networking/default.nix

26 lines
475 B
Nix

{ config, ... }:
{
imports = [
./mounts
./mycelium
./nameservers
./wireless
];
networking = {
useNetworkd = true;
dhcpcd.enable = !config.networking.useNetworkd;
nftables.enable = true;
firewall.allowPing = false;
};
services.resolved = {
enable = config.networking.useNetworkd;
dnsovertls = "true";
};
systemd = {
services.NetworkManager-wait-online.enable = false;
network.wait-online.enable = false;
};
}