mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 13:23:11 +01:00
32 lines
585 B
Nix
32 lines
585 B
Nix
{ ... }:
|
|
{
|
|
networking = {
|
|
hostName = "nuc";
|
|
domain = "rfive.de";
|
|
useNetworkd = true;
|
|
enableIPv6 = true;
|
|
};
|
|
services.resolved = {
|
|
enable = true;
|
|
# make room for the adguard dns
|
|
extraConfig = ''
|
|
[Resolve]
|
|
DNS=127.0.0.1
|
|
DNSStubListener=no
|
|
'';
|
|
};
|
|
systemd.network = {
|
|
enable = true;
|
|
networks."10-loopback" = {
|
|
matchConfig.Name = "lo";
|
|
linkConfig.RequiredForOnline = false;
|
|
};
|
|
networks."10-wired" = {
|
|
matchConfig.Name = "eno1";
|
|
networkConfig = {
|
|
DHCP = "yes";
|
|
};
|
|
};
|
|
};
|
|
}
|