Files
nix-config-ryan4yin/outputs/x86_64-linux/tests/youko-tmpfiles/expected.nix
T
Ryan Yin dd2bd44bc2 fix(youko): apply /data tmpfiles in a pass of their own
89d7a9bd made systemd-tmpfiles-setup RequiresMountsFor the five nofail
USB-disk mounts. One failed mount then skipped every tmpfiles rule on the
host, and sysinit.target waited for the disks and the LUKS unlock even on
success.

Leave the boot-wide pass as upstream ships it and add data-tmpfiles:
`systemd-tmpfiles --prefix=/data` with WantsMountsFor on the /data mounts,
ordered before the services that use them.

Assisted-by: Claude Code (claude-opus-5-5)
2026-11-01 10:51:51 -06:00

16 lines
358 B
Nix

{ outputs, ... }:
let
systemd = outputs.nixosConfigurations.youko.config.systemd.package;
in
{
wantsMountsFor = [
"/data/apps"
"/data/apps-snapshots"
"/data/backups"
"/data/fileshare"
"/data/fileshare/public"
];
execStart = "${systemd}/bin/systemd-tmpfiles --create --remove --boot --prefix=/data";
setupWaitsForData = false;
}