47 lines
980 B
Nix
47 lines
980 B
Nix
{
|
|
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";
|
|
}
|