added for vps
This commit is contained in:
parent
15d0cb574b
commit
ffbf9e08f2
9 changed files with 314 additions and 21 deletions
22
hosts/server/networking.nix
Normal file
22
hosts/server/networking.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
networking = {
|
||||
hostName = "magus";
|
||||
useDHCP = false;
|
||||
interfaces.enX0.ipv4.addresses = [
|
||||
{
|
||||
address = "104.152.210.245";
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
defaultGateway = "104.152.210.1";
|
||||
nameservers = ["8.8.8.8" "8.8.4.4"];
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [8123 80 443];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue