fix: add static networking for digital ocean
This commit is contained in:
parent
1c9e4f0bae
commit
5bc13852b7
1 changed files with 12 additions and 0 deletions
|
|
@ -21,7 +21,19 @@
|
|||
efiInstallAsRemovable = true;
|
||||
};
|
||||
|
||||
boot.kernelParams = [ "net.ifnames=0" ];
|
||||
|
||||
networking.hostName = "compsigh-minecraft";
|
||||
networking.defaultGateway = "157.230.144.1";
|
||||
networking.nameservers = [ "67.207.67.3" "67.207.67.2" ];
|
||||
networking.interfaces.eth0.ipv4.addresses = [
|
||||
{ address = "157.230.151.230"; prefixLength = 20; }
|
||||
{ address = "10.46.0.5"; prefixLength = 16; }
|
||||
];
|
||||
networking.interfaces.eth1.ipv4.addresses = [{
|
||||
address = "10.120.0.2";
|
||||
prefixLength = 20;
|
||||
}];
|
||||
|
||||
time.timeZone = "America/Los_Angeles";
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue