oparl: set defaultGateway

This commit is contained in:
Astro 2022-05-28 01:56:33 +02:00
parent 5888cf1359
commit 374203c62c
1 changed files with 13 additions and 10 deletions

View File

@ -35,19 +35,22 @@ in
} ];
};
networking.hostName = "oparl";
networking = {
hostName = "oparl";
networking.useDHCP = false;
networking.interfaces.eth0 = {
useDHCP = false;
ipv4.addresses = [ {
address = netConfig.hosts4.${config.networking.hostName};
prefixLength = netConfig.subnet4Len;
} ];
interfaces.eth0 = {
useDHCP = false;
ipv4.addresses = [ {
address = netConfig.hosts4.${config.networking.hostName};
prefixLength = netConfig.subnet4Len;
} ];
};
defaultGateway = netConfig.hosts4.serv-gw;
nameservers = [
netConfig.hosts4.dnscache "9.9.9.9"
];
};
networking.nameservers = [
netConfig.hosts4.dnscache "9.9.9.9"
];
users.users.oparl = {
isNormalUser = true;