diff --git a/nixos/servnerr-3/containers.nix b/nixos/servnerr-3/containers.nix index c5ea5d8..982339a 100644 --- a/nixos/servnerr-3/containers.nix +++ b/nixos/servnerr-3/containers.nix @@ -4,54 +4,6 @@ # These services are proprietary and run containerized for confinement from # the rest of the system and on unstable for faster update cycles. containers = { - minecraft = { - autoStart = true; - bindMounts = { - # Mount the data directory as read/write. - "/var/lib/minecraft" = { - hostPath = "/var/lib/minecraft"; - isReadOnly = false; - }; - }; - config = { ... }: - let - secrets = import ./lib/secrets.nix; - unstable = - import { config.allowUnfree = true; }; - in { - services.minecraft-server = { - enable = true; - package = unstable.minecraft-server; - - eula = true; - declarative = true; - - # Use more RAM! - jvmOpts = "-Xmx16384M -Xms16384M"; - - serverProperties = { - motd = "Matt's Minecraft server"; - enable-rcon = true; - "rcon.password" = secrets.minecraft.rcon; - pvp = false; - view-distance = 15; - enforce-whitelist = true; - white-list = true; - }; - - whitelist = { - DocNastyDub = "d849719b-2438-4ecc-8557-7decc63ad5cb"; - ericthegreat12 = "6853f664-f600-42c5-9d82-934d0ab6df9c"; - HashtagVEGAS = "2dfdd3a5-876b-4042-b2bf-5a49621e998f"; - LazerAtanYarak = "e96db193-235d-40ba-95b3-a01502ef3b90"; - nerrster = "38f8c307-dde4-4774-a969-f4cc69dec50e"; - rothberry = "5d758298-b38b-4e30-8e02-161373b26c01"; - Son_of_a_Teacher = "42cc4da3-3d2a-4cc3-9b2d-897f93438594"; - }; - }; - }; - }; - plex = { autoStart = true; bindMounts = {