diff options
author | sils <sils@sils.li> | 2023-06-19 16:21:50 +0200 |
---|---|---|
committer | sils <sils@sils.li> | 2023-06-19 16:21:50 +0200 |
commit | 08c7fa66254f44db88dc12243cd59d01a9c24b3d (patch) | |
tree | 63c84fad5b27c3a36ca6ff2c440afbd859497a39 /system/services | |
parent | Refactor(services): Remove dead code (diff) | |
download | nixos-server-08c7fa66254f44db88dc12243cd59d01a9c24b3d.tar.gz nixos-server-08c7fa66254f44db88dc12243cd59d01a9c24b3d.zip |
Feat(system/services): Add minecraft server
Diffstat (limited to '')
-rw-r--r-- | system/services/default.nix | 1 | ||||
-rw-r--r-- | system/services/minecraft/default.nix | 21 |
2 files changed, 22 insertions, 0 deletions
diff --git a/system/services/default.nix b/system/services/default.nix index e0579db..d1f2c85 100644 --- a/system/services/default.nix +++ b/system/services/default.nix @@ -2,6 +2,7 @@ imports = [ ./acme ./keycloak + ./minecraft ./nginx ./nix ./opensshd diff --git a/system/services/minecraft/default.nix b/system/services/minecraft/default.nix new file mode 100644 index 0000000..aa91b3c --- /dev/null +++ b/system/services/minecraft/default.nix @@ -0,0 +1,21 @@ +{}: { + services.minecraft-server = { + enable = true; + declarative = true; + eula = true; + dataDir = "/srv/minecraft"; + openFirewall = true; + whitelist = { + ShadyCraft = "7995eea5-b648-41c4-9b0f-7fc082565952"; + Nightingale768 = "1125d077-6709-44b2-9be0-587aec772e7a"; + Sirius_Black123 = "f5f66fc5-f287-434e-a03f-2480f998e76f"; + DerDaHalt = "09c72cb7-cab9-444f-af55-616fcf93822c"; + }; + serverProperties = { + player-idle-timeout = 30; + white-list = true; + difficulty = 3; + gamemode = "survival"; + }; + }; +} |