Compare commits

...
Sign in to create a new pull request.

4 commits

Author SHA1 Message Date
9dbd4584e4 Merge pull request 'Run panel-api with reudy's primary group' (#6) from fix-service-primary-group into main
Reviewed-on: #6
2026-10-20 17:48:23 +02:00
bc3244a022 Run panel-api with reudy's primary group
Deploys failed with "newuidmap: Target process is owned by a different
user: ... gid:992 pw_gid:100". newuidmap only maps for a process whose
gid matches the user's passwd entry, and the unit forced
Group=panelroutes. It only worked while a podman pause process from a
login shell still held reudy's user namespace.

panelroutes is only needed to write the Caddy routes file, which
panelctl does with an explicit `install -g`; a supplementary group is
enough for that.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018s1T5e2bQY6WrX4JeEyEPM
2026-10-20 15:43:02 +00:00
a95c06f009 Merge pull request 'Put NixOS setuid wrappers on the panel service PATH' (#4) from agent/fix-rootless-wrappers-path into main
Reviewed-on: #4
2026-10-18 18:28:29 +02:00
30dd303189 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
2026-10-18 16:23:36 +00:00

View file

@ -123,11 +123,12 @@ in
description = "Panel API";
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
path = [ "/run/wrappers" ];
serviceConfig = {
Type = "simple";
User = cfg.user;
Group = cfg.group;
SupplementaryGroups = [ cfg.group ];
Restart = "always";
RestartSec = 3;
WorkingDirectory = cfg.baseDir;