diff --git a/systems/etna/default.nix b/systems/etna/default.nix index 6abb532..6d009dc 100644 --- a/systems/etna/default.nix +++ b/systems/etna/default.nix @@ -20,6 +20,7 @@ in { cfTunnelSecret.generate ./minecraft.nix + ./satisfactory.nix ./dendrite.nix ./nextcloud.nix ./reposilite.nix diff --git a/systems/etna/satisfactory.nix b/systems/etna/satisfactory.nix new file mode 100644 index 0000000..daab588 --- /dev/null +++ b/systems/etna/satisfactory.nix @@ -0,0 +1,26 @@ +{config, ...}: let + inherit (config.virtualisation.oci-containers) backend; +in { + virtualisation.oci-containers.containers.satisfactory = { + image = "wolveix/satisfactory-server:v1.8.5"; + ports = ["7777:7777/udp" "7777:7777/tcp"]; + volumes = ["/var/lib/satisfactory-server:/config"]; + environment = { + MAXPLAYERS = "4"; + PGID = "1000"; + PUID = "1000"; + ROOTLESS = "false"; + STEAMBETA = "false"; + }; + }; + + systemd.services."${backend}-satisfactory".serviceConfig = { + MemoryHigh = "12G"; + MemoryMax = "16G"; + }; + + networking.firewall = { + allowedTCPPorts = [7777]; + allowedUDPPorts = [7777]; + }; +}