From cca3e0d42b014c9f9bd6004ffc85d302cbfa5768 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Numbus?= Date: Tue, 3 Mar 2026 21:46:15 +0100 Subject: [PATCH] Try to fix newuidmap exec not found --- modules/services/lib.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/services/lib.nix b/modules/services/lib.nix index cfabf9d..9d66e82 100644 --- a/modules/services/lib.nix +++ b/modules/services/lib.nix @@ -106,7 +106,7 @@ with lib; onFailure = [ "service-failure-notify@%n.service" ]; startLimitBurst = 5; startLimitIntervalSec = 600; - path = [ pkgs.coreutils pkgs.podman-compose ]; + path = [ pkgs.coreutils pkgs.podman pkgs.podman-compose ]; serviceConfig = { Type = "exec"; User = "numbus-admin"; @@ -114,10 +114,10 @@ with lib; TimeoutStartSec = "1000"; ExecStartPre = [ "${pkgs.bash}/bin/bash -c 'sleep $((RANDOM % ${toString startDelay}))'" - "/run/wrappers/bin/podman compose -f /etc/podman/${name}/compose.yaml pull" + "${pkgs.podman}/bin/podman compose -f /etc/podman/${name}/compose.yaml pull" ]; - ExecStart = "/run/wrappers/bin/podman compose ${envFileArg} --in-pod ${toString pod} -f /etc/podman/${name}/compose.yaml up --remove-orphans"; - ExecStop = "/run/wrappers/bin/podman compose ${envFileArg} --in-pod ${toString pod} -f /etc/podman/${name}/compose.yaml down"; + ExecStart = "${pkgs.podman}/bin/podman compose ${envFileArg} --in-pod ${toString pod} -f /etc/podman/${name}/compose.yaml up --remove-orphans"; + ExecStop = "${pkgs.podman}/bin/podman compose ${envFileArg} --in-pod ${toString pod} -f /etc/podman/${name}/compose.yaml down"; Restart = "on-failure"; RestartSec = "3m"; };