2.home-manager/tests
Thierry Delafontaine 3d64f2875e podman: fix container config mount on Darwin
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.
2026-06-01 14:13:42 -05:00
..
integration rclone: rename remote directory to fix failing tests 2026-05-05 12:40:06 +02:00
lib lib/deprecations: suppress no-op state-version warnings 2026-04-19 22:48:45 -05:00
modules podman: fix container config mount on Darwin 2026-06-01 14:13:42 -05:00
asserts.nix treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00
big-test.nix treewide: Prevent IFD by default 2025-05-07 10:34:18 -05:00
darwinScrublist.nix tests/darwinScrublist: add pimsync 2026-05-24 22:10:29 -05:00
default.nix modules: add modular services support 2026-05-04 17:22:16 +02:00
package.nix tests: support override-inputs in test runner 2026-04-24 13:06:58 -05:00
stubs.nix tests: split stub derivation attrs from methods 2026-04-23 18:12:20 -05:00
tests.py tests: support override-inputs in test runner 2026-04-24 13:06:58 -05:00