aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2024-07-03 17:36:58 +0200
committerMax Audron <audron@cocaine.farm>2024-07-03 17:36:58 +0200
commit871ff4ee580eab18097c0fc54ede784bba43c259 (patch)
tree81feda61e14f995086892bc153719773f5e0b862 /modules
parentadd rtmp and laplace (diff)
add acc server
Diffstat (limited to 'modules')
-rw-r--r--modules/games/acc.nix21
-rw-r--r--modules/games/default.nix2
-rw-r--r--modules/games/palworld.nix2
3 files changed, 23 insertions, 2 deletions
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";