started shanghai
This commit is contained in:
parent
52722bb66e
commit
39b22bfd0b
6 changed files with 176 additions and 30 deletions
25
hosts/servers/shanghai.nix
Normal file
25
hosts/servers/shanghai.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
# Host-common imports
|
||||
../common
|
||||
# Server-common imports
|
||||
./common
|
||||
# Host-specific imports
|
||||
./shanghai
|
||||
];
|
||||
|
||||
nix.nixPath = [ "nixos-config=${./shanghai.nix}" ];
|
||||
|
||||
networking = {
|
||||
hostName = "shanghai";
|
||||
firewall = {
|
||||
allowedTCPPorts = [ 25565 ];
|
||||
allowedUDPPorts = [ 25565 ];
|
||||
};
|
||||
nftables.enable = true;
|
||||
};
|
||||
|
||||
zramSwap.enable = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue