updated /var/lib/reforger/ systemd.files user
This commit is contained in:
parent
83b5be577f
commit
13dc510b8b
1 changed files with 29 additions and 26 deletions
|
|
@ -14,16 +14,18 @@ in
|
|||
self.nixosModules.default
|
||||
"${modulesPath}/virtualisation/lxc-container.nix"
|
||||
];
|
||||
# sample way to make a directory
|
||||
# systemd.tmpfiles.rules = [
|
||||
# "d /var/lib/myapp 0755 myuser mygroup -"
|
||||
# ];
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /var/lib/reforger/configs/ 0755 root root -"
|
||||
"d /var/lib/reforger/profile/ 0755 root root -"
|
||||
"d /var/lib/reforger/workshop/ 0755 root root -"
|
||||
];
|
||||
# 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://wiki.nixos.org/wiki/NixOS_Containers
|
||||
services.yggdrasil.persistentKeys = false;
|
||||
virtualisation.podman.enable = true;
|
||||
virtualisation.oci-containers.containers = {
|
||||
virtualisation = {
|
||||
podman.enable = true;
|
||||
oci-containers.containers = {
|
||||
arma = {
|
||||
image = "ghcr.io/acemod/arma-reforger:latest";
|
||||
ports = [
|
||||
|
|
@ -40,11 +42,12 @@ in
|
|||
"/var/lib/reforger/workshop:/reforger/workshop"
|
||||
];
|
||||
environment = {
|
||||
SERVER_PUBLIC_ADDRESS = "public-ip";
|
||||
SERVER_PUBLIC_ADDRESS = "68.36.109.246";
|
||||
GAME_NAME = "My Docker Reforger Server";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
deploy = {
|
||||
enable = false;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue