From 871ff4ee580eab18097c0fc54ede784bba43c259 Mon Sep 17 00:00:00 2001 From: Max Audron Date: Wed, 3 Jul 2024 17:36:58 +0200 Subject: add acc server --- modules/games/acc.nix | 21 +++++++++++++++++++++ modules/games/default.nix | 2 +- modules/games/palworld.nix | 2 +- 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 modules/games/acc.nix (limited to 'modules/games') diff --git a/modules/games/acc.nix b/modules/games/acc.nix new file mode 100644 index 0000000..c9a50eb --- /dev/null +++ b/modules/games/acc.nix @@ -0,0 +1,21 @@ +{ + config, + lib, + pkgs, + ... +}: + +{ + virtualisation.oci-containers.containers = { + acc-server = { + image = "docker.io/grimsi/accserver:latest"; + autoStart = true; + volumes = [ "/var/lib/acc-server:/opt/server" ]; + ports = [ + "178.63.224.10:9231:9231/udp" + "178.63.224.10:9232:9232/tcp" + ]; + environment = { }; + }; + }; +} diff --git a/modules/games/default.nix b/modules/games/default.nix index 5d7fcef..952f69a 100644 --- a/modules/games/default.nix +++ b/modules/games/default.nix @@ -1,7 +1,7 @@ { config, lib, pkgs, ... }: { - imports = [ ./palworld.nix ]; + imports = [ ./palworld.nix ./acc.nix ]; services.factorio = { enable = true; diff --git a/modules/games/palworld.nix b/modules/games/palworld.nix index 5ccc1fe..844eb36 100644 --- a/modules/games/palworld.nix +++ b/modules/games/palworld.nix @@ -17,7 +17,7 @@ ALWAYS_UPDATE_ON_START = "true"; MULTITHREAD_ENABLED = "true"; COMMUNITY_SERVER = "true"; - BACKUP_ENABLED = "true"; + BACKUP_ENABLED = "false"; BACKUP_CRON_EXPRESSION = "0 * * * *"; NETSERVERMAXTICKRATE = "120"; DIFFICULTY = "None"; -- cgit v1.2.3