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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018s1T5e2bQY6WrX4JeEyEPM
This commit is contained in:
parent
ba0a0155c8
commit
1b8a0710c5
1 changed files with 3 additions and 0 deletions
|
|
@ -123,6 +123,9 @@ in
|
||||||
description = "Panel API";
|
description = "Panel API";
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
wantedBy = [ "multi-user.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 = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue