oparl: set defaultGateway
This commit is contained in:
parent
5888cf1359
commit
374203c62c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue