static network at location no. 4

This commit is contained in:
oxapentane - 2022-08-31 13:44:14 +02:00
parent dcd3ff4931
commit a0d09a3bfb
Signed by: oxapentane
GPG Key ID: 91FA5E5BF9AA901C
1 changed files with 19 additions and 2 deletions

View File

@ -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" ];