feat(eurus): add static ip and dns servers
This commit is contained in:
parent
6b13aa8f39
commit
2a0b35b2ec
1 changed files with 14 additions and 0 deletions
|
@ -4,4 +4,18 @@
|
||||||
];
|
];
|
||||||
boot-config.bootloader = "systemd-boot";
|
boot-config.bootloader = "systemd-boot";
|
||||||
hardware-config.cpu = "amd";
|
hardware-config.cpu = "amd";
|
||||||
|
networking = {
|
||||||
|
interfaces.enp3s0.useDHCP = false; # Disable DHCP, we use static IP
|
||||||
|
interfaces.enp3s0.ipv4.addresses = [
|
||||||
|
{
|
||||||
|
address = "160.191.77.168";
|
||||||
|
prefixLength = 24; # Or 255.255.255.0
|
||||||
|
}
|
||||||
|
];
|
||||||
|
defaultGateway = "160.191.77.1"; # The gateway from the admin panel
|
||||||
|
nameservers = [
|
||||||
|
"1.1.1.1"
|
||||||
|
"1.0.0.1"
|
||||||
|
]; # DNS servers from the admin panel
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue