static network at location no. 4
This commit is contained in:
parent
dcd3ff4931
commit
a0d09a3bfb
|
@ -4,8 +4,25 @@
|
|||
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
|
||||
# Per-interface useDHCP will be mandatory in the future, so this generated config
|
||||
# replicates the default behaviour.
|
||||
networking.useDHCP = false;
|
||||
networking.interfaces.enp1s0.useDHCP = true;
|
||||
|
||||
networking = if config.dump-dvb.systemNumber != 4 then {
|
||||
interfaces.enp1s0.useDHCP = true;
|
||||
useDHCP = false;
|
||||
} else {
|
||||
useDHCP = false;
|
||||
defaultGateway = "141.30.30.129";
|
||||
nameservers = [ "141.30.1.1" ];
|
||||
interfaces.enp1s0 = {
|
||||
useDHCP = false;
|
||||
ipv4.addresses = [
|
||||
{
|
||||
address = "141.30.30.149";
|
||||
prefixLength = 25;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
boot.tmpOnTmpfsSize = "25%";
|
||||
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
|
|
Loading…
Reference in New Issue