diff --git a/nix/configuration/roles/podman/default.nix b/nix/configuration/roles/podman/default.nix index ba4abe6..09c9261 100644 --- a/nix/configuration/roles/podman/default.nix +++ b/nix/configuration/roles/podman/default.nix @@ -50,6 +50,23 @@ DOCKER_HOST = "unix://$XDG_RUNTIME_DIR/podman/podman.sock"; }; + # Increase subuid / subgid to support running buildkit-rootless + # ref: https://github.com/moby/buildkit/issues/3297 + users.users.talexander = { + subUidRanges = [ + { + startUid = 100000; + count = 262144; # default = 65536 + } + ]; + subGidRanges = [ + { + startGid = 100000; + count = 262144; # default = 65536 + } + ]; + }; + environment.persistence."/state" = lib.mkIf (config.me.mountPersistence) { hideMounts = true; directories = [