Add sudo rules for reudy to allow NOPASSWD systemctl reload for caddy and update panelctl.sh to use docker.io for image reference

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Jakub Dorfman 2026-04-26 20:16:42 +02:00
parent a27b7de7fa
commit 36664f243e
2 changed files with 12 additions and 1 deletions

View file

@ -80,6 +80,17 @@
};
security.sudo.wheelNeedsPassword = true;
security.sudo.extraRules = [
{
users = [ "reudy" ];
commands = [
{
command = "${pkgs.systemd}/bin/systemctl reload caddy";
options = [ "NOPASSWD" ];
}
];
}
];
services.openssh = {

View file

@ -171,7 +171,7 @@ write_default_compose() {
cat >"${stack_dir}/compose.yaml" <<EOF
services:
app:
image: traefik/whoami:latest
image: docker.io/traefik/whoami:latest
restart: unless-stopped
ports:
- "127.0.0.1:${port}:80"