feature: added arma example
All checks were successful
/ check (push) Successful in 1m1s
/ deploy (push) Has been skipped

This commit is contained in:
Jermeiah S 2025-06-25 16:41:26 -04:00
parent f99ae718d9
commit 48cf905287
No known key found for this signature in database

View file

@ -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";
}