From 268ce7c7db44bfa1d9bebf2afe45615e4d046df0 Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Mon, 21 Oct 2024 14:19:18 +0700 Subject: [PATCH] valheim: disabled the hutasuhut server --- system/podman/valheim.nix | 72 +++++++++++++++++++-------------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/system/podman/valheim.nix b/system/podman/valheim.nix index 5c84558..e53c37a 100644 --- a/system/podman/valheim.nix +++ b/system/podman/valheim.nix @@ -54,13 +54,13 @@ lib.mkMerge [ }; }; - systemd.tmpfiles.settings."podman-${name}-hutasuhut" = { - ${base_dir_hutasuhut}.d = { - group = config.profile.user.name; - mode = "0755"; - user = config.profile.user.name; - }; - }; + # systemd.tmpfiles.settings."podman-${name}-hutasuhut" = { + # ${base_dir_hutasuhut}.d = { + # group = config.profile.user.name; + # mode = "0755"; + # user = config.profile.user.name; + # }; + # }; virtualisation.oci-containers.containers.${name} = { inherit image; @@ -89,34 +89,34 @@ lib.mkMerge [ "io.containers.autoupdate" = "registry"; }; }; - virtualisation.oci-containers.containers."${name}-hutasuhut" = { - inherit image; - hostname = name; - autoStart = true; - ports = [ "2457:2457/udp" ]; - volumes = [ - "${base_dir_hutasuhut}/config:/config" - "${base_dir_hutasuhut}/data:/opt/valheim" - ]; - environment = { - TZ = "Asia/Jakarta"; - SERVER_NAME = "Hutasuhut"; - WORLD_NAME = "Hutasuhut"; - STATUS_HTTP = "true"; - PUID = uid; - PGID = gid; - }; - extraOptions = [ - "--network=podman" - "--ip=${ip-hutasuhut}" - "--cap-add=sys_nice" - ]; - environmentFiles = [ config.sops.templates."valheim-env".path ]; - labels = { - "io.containers.autoupdate" = "registry"; - }; - }; + # virtualisation.oci-containers.containers."${name}-hutasuhut" = { + # inherit image; + # hostname = name; + # autoStart = true; + # ports = [ "2457:2457/udp" ]; + # volumes = [ + # "${base_dir_hutasuhut}/config:/config" + # "${base_dir_hutasuhut}/data:/opt/valheim" + # ]; + # environment = { + # TZ = "Asia/Jakarta"; + # SERVER_NAME = "Hutasuhut"; + # WORLD_NAME = "Hutasuhut"; + # STATUS_HTTP = "true"; + # PUID = uid; + # PGID = gid; + # }; + # extraOptions = [ + # "--network=podman" + # "--ip=${ip-hutasuhut}" + # "--cap-add=sys_nice" + # ]; + # environmentFiles = [ config.sops.templates."valheim-env".path ]; + # labels = { + # "io.containers.autoupdate" = "registry"; + # }; + # }; }) - { 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"; }]; } + # { profile.services.ntfy-sh.client.settings.subscribe = [{ topic = "valheim-hutasuhut"; }]; } ]