Files
homelab/modules/networking/core/default.nix
T
pure_sagacity 4e925f8a89 holy shit im stupid, a lot of changes.
also added the configuration bc idk how to add only certain files but
whatever
2026-07-05 23:43:35 -05:00

39 lines
657 B
Nix

{ config, lib, ... }:
let
cfg = config.homelab.networking.core;
in
{
imports = [
./firewall.nix
];
config = {
networking = {
networkmanager = {
enable = true;
dns = "systemd-resolved";
};
extraHosts = lib.concatMapStringsSep "\n" (
host: "${host.ip_address} ${host.hostname}"
) cfg.extraHosts;
nftables.enable = true;
nameservers = cfg.nameservers;
};
services.resolved = {
enable = true;
settings.Resolve = {
dnssec = "true";
DNSOverTLS = "true";
domains = [ "~." ];
fallbackDns = cfg.nameservers;
};
};
};
}