nixos: podman without sudo for the admins; re-key the rehearsal ops
All checks were successful
nixos / nixos (push) Successful in 35s

`podman` run as an admin showed that user's own, empty rootless store,
so `podman ps` needed sudo while `docker ps` did not. Point CONTAINER_HOST
at the system Podman's socket, which group podman (the admins) may use.

The rehearsal ops server was rebuilt and has a new host key.

Assisted-by: Claude:opus-5-5
This commit is contained in:
Sergei Poljanski 2026-11-17 08:10:13 +04:00
commit f49dd72172
Signed by: asxpi
GPG key ID: 4F8851660FA4121B

View file

@ -22,6 +22,10 @@
virtualisation.oci-containers.backend = "podman";
environment.systemPackages = [ pkgs.docker-client ];
# `podman` talks to the same system Podman too, for every admin without
# sudo (they are in group podman, which owns the socket); otherwise it
# would show each user's own, empty rootless store
environment.variables.CONTAINER_HOST = "unix:///run/podman/podman.sock";
# Podman's DNS for container networks, on each bridge's gateway. The
# NixOS module opens it on podman0 only; CI jobs and compose stacks get
# networks of their own (podman1, podman2, ...).