parent
042d70cb3d
commit
a5a4be6f94
1 changed files with 11 additions and 2 deletions
|
@ -2,6 +2,11 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
isAdguardHost = config.services.adguardhome.enable;
|
isAdguardHost = config.services.adguardhome.enable;
|
||||||
|
|
||||||
|
interfaces.eth = [
|
||||||
|
"enp*"
|
||||||
|
"eth*"
|
||||||
|
];
|
||||||
nameservers = {
|
nameservers = {
|
||||||
local = [
|
local = [
|
||||||
"127.0.0.1"
|
"127.0.0.1"
|
||||||
|
@ -19,8 +24,6 @@ let
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
networking.useDHCP = lib.mkDefault true;
|
|
||||||
|
|
||||||
networking.nameservers = if isAdguardHost then nameservers.local else nameservers.remote;
|
networking.nameservers = if isAdguardHost then nameservers.local else nameservers.remote;
|
||||||
|
|
||||||
networking.nftables.enable = true;
|
networking.nftables.enable = true;
|
||||||
|
@ -29,6 +32,12 @@ in
|
||||||
systemd.network = {
|
systemd.network = {
|
||||||
enable = true;
|
enable = true;
|
||||||
wait-online.ignoredInterfaces = [ "tailscale0" ];
|
wait-online.ignoredInterfaces = [ "tailscale0" ];
|
||||||
|
networks = {
|
||||||
|
"10-lan" = {
|
||||||
|
matchConfig.Name = interfaces.eth;
|
||||||
|
networkConfig.DHCP = "yes";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.dnsmasq.enable = false;
|
services.dnsmasq.enable = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue