mirror of
https://github.com/nix-community/home-manager.git
synced 2026-06-05 21:02:51 +00:00
On Darwin, `services.podman` mounts `~/.config/containers` into the Fedora CoreOS VM, but this did not work correctly for two reasons: * `xdg.configFile` creates symlinks into `/nix/store`, which are broken inside the guest. * The mount target `~/\.config/containers` is not canonical on Fedora CoreOS, so Podman rejects it. To fix this, we now: * materialize the generated Podman config files as real files with `runCommand` * sync them into `~/.config/containers` during activation, between `linkGeneration` and `podmanMachines` * use the canonical guest path `/var/home/<user>/.config/containers` Because adding the config directory to the volume mounts overrides the defaults, we also restore the default Podman volumes as the defaults for the `machines.<machine>.volumes` attribute while still allowing full overrides. This change does not affect Linux: `xdg.configFile` still produces store symlinks there. Closes #9327.