From 125ab8c3a5091d307a3dbc7a86d3e8337e471f13 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 15 Nov 2022 18:27:38 +0100 Subject: [PATCH] VEGAS/minecraft/0fyy6ksf: end contract --- .../services/minecraft/customer-0fyy6ksf.nix | 31 ------------------- hosts/VEGAS/services/minecraft/default.nix | 1 - 2 files changed, 32 deletions(-) delete mode 100644 hosts/VEGAS/services/minecraft/customer-0fyy6ksf.nix diff --git a/hosts/VEGAS/services/minecraft/customer-0fyy6ksf.nix b/hosts/VEGAS/services/minecraft/customer-0fyy6ksf.nix deleted file mode 100644 index b41c129..0000000 --- a/hosts/VEGAS/services/minecraft/customer-0fyy6ksf.nix +++ /dev/null @@ -1,31 +0,0 @@ -{ config, inputs, pkgs, ... }: -let - custId = "0fyy6ksf"; -in -{ - links."mc-${custId}" = {}; - links."mc-rcon-${custId}" = {}; - services.modded-minecraft-servers.instances."${custId}" = { - enable = true; - rsyncSSHKeys = [ - "ssh-ed25519 dummyKey" - ]; - jvmPackage = inputs.self.packages.${pkgs.system}.jre17_standard; - jvmInitialAllocation = "2G"; - jvmMaxAllocation = "4G"; - serverConfig = { - server-port = config.links."mc-${custId}".port; - motd = "Hosted by Private Void"; - enable-rcon = true; - rcon-port = config.links."mc-rcon-${custId}".port; - rcon-password = "manager"; - allow-flight = true; - }; - }; - systemd.services."mc-${custId}".serviceConfig = { - CPUQuota = "200%"; - MemoryHigh = "4.2G"; - MemoryMax = "4.3G"; - MemorySwapMax = "1G"; - }; -} diff --git a/hosts/VEGAS/services/minecraft/default.nix b/hosts/VEGAS/services/minecraft/default.nix index 9a5d092..3c31519 100644 --- a/hosts/VEGAS/services/minecraft/default.nix +++ b/hosts/VEGAS/services/minecraft/default.nix @@ -1,6 +1,5 @@ { services.modded-minecraft-servers.eula = true; imports = [ - ./customer-0fyy6ksf.nix ]; }