valheim: disabled the hutasuhut server

This commit is contained in:
Tigor Hutasuhut 2024-10-21 14:19:18 +07:00
parent ce924a7516
commit 268ce7c7db

View file

@ -54,13 +54,13 @@ lib.mkMerge [
}; };
}; };
systemd.tmpfiles.settings."podman-${name}-hutasuhut" = { # systemd.tmpfiles.settings."podman-${name}-hutasuhut" = {
${base_dir_hutasuhut}.d = { # ${base_dir_hutasuhut}.d = {
group = config.profile.user.name; # group = config.profile.user.name;
mode = "0755"; # mode = "0755";
user = config.profile.user.name; # user = config.profile.user.name;
}; # };
}; # };
virtualisation.oci-containers.containers.${name} = { virtualisation.oci-containers.containers.${name} = {
inherit image; inherit image;
@ -89,34 +89,34 @@ lib.mkMerge [
"io.containers.autoupdate" = "registry"; "io.containers.autoupdate" = "registry";
}; };
}; };
virtualisation.oci-containers.containers."${name}-hutasuhut" = { # virtualisation.oci-containers.containers."${name}-hutasuhut" = {
inherit image; # inherit image;
hostname = name; # hostname = name;
autoStart = true; # autoStart = true;
ports = [ "2457:2457/udp" ]; # ports = [ "2457:2457/udp" ];
volumes = [ # volumes = [
"${base_dir_hutasuhut}/config:/config" # "${base_dir_hutasuhut}/config:/config"
"${base_dir_hutasuhut}/data:/opt/valheim" # "${base_dir_hutasuhut}/data:/opt/valheim"
]; # ];
environment = { # environment = {
TZ = "Asia/Jakarta"; # TZ = "Asia/Jakarta";
SERVER_NAME = "Hutasuhut"; # SERVER_NAME = "Hutasuhut";
WORLD_NAME = "Hutasuhut"; # WORLD_NAME = "Hutasuhut";
STATUS_HTTP = "true"; # STATUS_HTTP = "true";
PUID = uid; # PUID = uid;
PGID = gid; # PGID = gid;
}; # };
extraOptions = [ # extraOptions = [
"--network=podman" # "--network=podman"
"--ip=${ip-hutasuhut}" # "--ip=${ip-hutasuhut}"
"--cap-add=sys_nice" # "--cap-add=sys_nice"
]; # ];
environmentFiles = [ config.sops.templates."valheim-env".path ]; # environmentFiles = [ config.sops.templates."valheim-env".path ];
labels = { # labels = {
"io.containers.autoupdate" = "registry"; # "io.containers.autoupdate" = "registry";
}; # };
}; # };
}) })
{ profile.services.ntfy-sh.client.settings.subscribe = [ { topic = "valheim"; } ]; } { profile.services.ntfy-sh.client.settings.subscribe = [{ topic = "valheim"; }]; }
{ profile.services.ntfy-sh.client.settings.subscribe = [ { topic = "valheim-hutasuhut"; } ]; } # { profile.services.ntfy-sh.client.settings.subscribe = [{ topic = "valheim-hutasuhut"; }]; }
] ]