nixos/systemd-tmpfiles: fix ordering of systemd-tmpfiles-setup-sysroot

Prior to this change a service failure would occur when this tmpfiles
service did not finish fast enough and receive a SIGTERM from systemd.
Additionally, `initrd-nixos-activation` is already ordered with
`After=initrd-switch-root.target`.
This commit is contained in:
WilliButz
2025-01-15 15:43:36 +01:00
parent 997e9d83c0
commit bc5b78f993
@@ -322,7 +322,7 @@ in
description = "Create Volatile Files and Directories in the Real Root";
after = [ "initrd-fs.target" ];
before = [
"initrd-nixos-activation.service"
"initrd.target"
"shutdown.target" "initrd-switch-root.target"
];
conflicts = [ "shutdown.target" "initrd-switch-root.target" ];