Files
nix-config/outputs/x86_64-linux/tests/youko-tmpfiles/expr.nix
T
ryan4yin | 二花 89d7a9bd82 fix(youko): wait for data mounts before tmpfiles setup (#498)
systemd-tmpfiles-setup only orders itself after local-fs.target, but the nofail /data submounts can complete later. It then sees /data as the read-only fallback tmpfs and fails to create the Transmission, Immich, RustFS and restic directories at boot.

Add RequiresMountsFor for the data mounts and cover the generated unit dependency with an eval test.
2026-11-01 16:36:00 +08:00

12 lines
220 B
Nix

{
lib,
outputs,
...
}:
let
unit = outputs.nixosConfigurations.youko.config.systemd.services.systemd-tmpfiles-setup;
in
{
requiresMountsFor = builtins.sort builtins.lessThan unit.unitConfig.RequiresMountsFor;
}