migrated to no docker for arma-reforger-tofu
This commit is contained in:
parent
13dc510b8b
commit
6225e23286
1 changed files with 52 additions and 29 deletions
|
|
@ -14,47 +14,70 @@ in
|
||||||
self.nixosModules.default
|
self.nixosModules.default
|
||||||
"${modulesPath}/virtualisation/lxc-container.nix"
|
"${modulesPath}/virtualisation/lxc-container.nix"
|
||||||
];
|
];
|
||||||
|
# Create steam user
|
||||||
|
users = {
|
||||||
|
users.steam = {
|
||||||
|
isNormalUser = true;
|
||||||
|
home = "/var/lib/steam";
|
||||||
|
createHome = true;
|
||||||
|
shell = pkgs.bash;
|
||||||
|
group = "steam";
|
||||||
|
};
|
||||||
|
groups.steam = {};
|
||||||
|
};
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"d /var/lib/reforger/configs/ 0755 root root -"
|
"d /var/lib/steam 0755 steam steam -"
|
||||||
"d /var/lib/reforger/profile/ 0755 root root -"
|
"d /var/lib/steam/reforger/configs/ 0755 steam steam -"
|
||||||
"d /var/lib/reforger/workshop/ 0755 root root -"
|
"d /var/lib/steam/reforger/profile/ 0755 steam steam -"
|
||||||
|
"d /var/lib/steam/reforger/workshop/ 0755 steam steam -"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
services.yggdrasil.persistentKeys = false;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# read more options here
|
# read more options here
|
||||||
# https://search.nixos.org/options?channel=25.05&show=virtualisation.oci-containers.containers.%3Cname%3E.workdir&from=0&size=50&sort=relevance&type=packages&query=oci+containers
|
# https://search.nixos.org/options?channel=25.05&show=virtualisation.oci-containers.containers.%3Cname%3E.workdir&from=0&size=50&sort=relevance&type=packages&query=oci+containers
|
||||||
# https://wiki.nixos.org/wiki/NixOS_Containers
|
# https://wiki.nixos.org/wiki/NixOS_Containers
|
||||||
services.yggdrasil.persistentKeys = false;
|
#virtualisation = {
|
||||||
virtualisation = {
|
# podman.enable = true;
|
||||||
podman.enable = true;
|
# oci-containers.containers = {
|
||||||
oci-containers.containers = {
|
# arma = {
|
||||||
arma = {
|
# image = "ghcr.io/acemod/arma-reforger:latest";
|
||||||
image = "ghcr.io/acemod/arma-reforger:latest";
|
# ports = [
|
||||||
ports = [
|
# "2001:2001/udp"
|
||||||
"2001:2001/udp"
|
# "17777:17777/udp"
|
||||||
"17777:17777/udp"
|
# "19999:19999/udp"
|
||||||
"19999:19999/udp"
|
# ];
|
||||||
];
|
# volumes = [
|
||||||
volumes = [
|
# # make sure this is a path that exists
|
||||||
# make sure this is a path that exists
|
# # my recomendation is to use /var/lib/reforger
|
||||||
# my recomendation is to use /var/lib/reforger
|
# # be sure to have that directory created
|
||||||
# be sure to have that directory created
|
# "/var/lib/reforger/configs:/reforger/Configs"
|
||||||
"/var/lib/reforger/configs:/reforger/Configs"
|
# "/var/lib/reforger/profile:/home/profile"
|
||||||
"/var/lib/reforger/profile:/home/profile"
|
# "/var/lib/reforger/workshop:/reforger/workshop"
|
||||||
"/var/lib/reforger/workshop:/reforger/workshop"
|
# ];
|
||||||
];
|
# environment = {
|
||||||
environment = {
|
# SERVER_PUBLIC_ADDRESS = "68.36.109.246";
|
||||||
SERVER_PUBLIC_ADDRESS = "68.36.109.246";
|
# GAME_NAME = "[NA] SK Development Studios | GROUND ZERO MODERN CONFLICT";
|
||||||
GAME_NAME = "My Docker Reforger Server";
|
# };
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
};
|
#};
|
||||||
};
|
|
||||||
deploy = {
|
deploy = {
|
||||||
enable = false;
|
enable = false;
|
||||||
};
|
};
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "arma-reforger-tofu";
|
hostName = "arma-reforger-tofu";
|
||||||
|
firewall = {
|
||||||
|
enable = true;
|
||||||
|
allowedUDPPorts = [ 2001 17777 19999 ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
|
steamcmd
|
||||||
];
|
];
|
||||||
system.stateVersion = "25.05";
|
system.stateVersion = "25.05";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue