diff options
| -rw-r--r-- | modules/games/acc.nix | 21 | ||||
| -rw-r--r-- | modules/games/default.nix | 2 | ||||
| -rw-r--r-- | modules/games/palworld.nix | 2 |
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"; |
