diff --git a/configurations/nixos/arma-reforger-tofu/default.nix b/configurations/nixos/arma-reforger-tofu/default.nix new file mode 100644 index 0000000..e18068f --- /dev/null +++ b/configurations/nixos/arma-reforger-tofu/default.nix @@ -0,0 +1,47 @@ +{ + flake, + modulesPath, + config, + ... +}: + +let + inherit (flake) inputs; + inherit (inputs) self; +in +{ + imports = [ + self.nixosModules.default + "${modulesPath}/virtualisation/lxc-container.nix" + ]; + services.yggdrasil.persistentKeys = false; + virtualisation.podman.enable = true; + virtualisation.oci-containers.containers = { + arma = { + image = "ghcr.io/acemod/arma-reforger:latest"; + ports = [ + "2001:2001/udp" + "17777:17777/udp" + "19999:19999/udp" + ]; + volumes = [ + "./reforger/configs:/reforger/Configs" + "./reforger/profile:/home/profile" + "./reforger/workshop:/reforger/workshop" + ]; + environment = { + SERVER_PUBLIC_ADDRESS = "public-ip"; + GAME_NAME = "My Docker Reforger Server"; + }; + }; + }; + deploy = { + enable = false; + }; + networking = { + hostName = "arma-reforger-tofu"; + }; + environment.systemPackages = [ + ]; + system.stateVersion = "25.05"; +}