From 7d8e77feb4530ff057d3dda83e176c144ffb1065 Mon Sep 17 00:00:00 2001 From: agent Date: Sun, 18 Oct 2026 16:18:08 +0000 Subject: [PATCH 1/2] Put NixOS setuid wrappers on the panel service PATH Deploys failed with 'command required for rootless mode with multiple IDs: exec: "newuidmap": executable file not found in $PATH'. Rootless podman needs the setuid newuidmap/newgidmap, which NixOS only installs in /run/wrappers/bin. Login shells have that on PATH, systemd services do not, so podman worked over SSH but not from panel-api. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_018s1T5e2bQY6WrX4JeEyEPM --- nix/module.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nix/module.nix b/nix/module.nix index 3ad08fb..f129eae 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -123,6 +123,9 @@ in description = "Panel API"; after = [ "network.target" ]; wantedBy = [ "multi-user.target" ]; + # Rootless podman needs the setuid newuidmap/newgidmap, which NixOS only + # provides in /run/wrappers/bin — never on a service's default PATH. + path = [ "/run/wrappers" ]; serviceConfig = { Type = "simple"; From 1b8a0710c5985ee0aa1376531dcaceec45dcc83f Mon Sep 17 00:00:00 2001 From: agent Date: Sun, 18 Oct 2026 16:18:08 +0000 Subject: [PATCH 2/2] Put NixOS setuid wrappers on the panel service PATH Deploys failed with 'command required for rootless mode with multiple IDs: exec: "newuidmap": executable file not found in $PATH'. Rootless podman needs the setuid newuidmap/newgidmap, which NixOS only installs in /run/wrappers/bin. Login shells have that on PATH, systemd services do not, so podman worked over SSH but not from panel-api. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_018s1T5e2bQY6WrX4JeEyEPM --- nix/module.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nix/module.nix b/nix/module.nix index 3ad08fb..f129eae 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -123,6 +123,9 @@ in description = "Panel API"; after = [ "network.target" ]; wantedBy = [ "multi-user.target" ]; + # Rootless podman needs the setuid newuidmap/newgidmap, which NixOS only + # provides in /run/wrappers/bin — never on a service's default PATH. + path = [ "/run/wrappers" ]; serviceConfig = { Type = "simple";