nixos/bcachefs: add upstream Systemd units to initrd

The bcachefs-wait-devices@.service unit can be added as a Wants
dependency to a .mount units to wait until every device in the
filesystem is initialized before doing the mount.
This commit is contained in:
beviu
2026-05-12 09:13:15 +02:00
parent 0003a08b78
commit 04beb06164
@@ -289,6 +289,7 @@ in
commonFunctions + lib.concatStrings (lib.mapAttrsToList openCommand bootFs)
);
boot.initrd.systemd.packages = [ cfg.package ];
boot.initrd.systemd.services = lib.mapAttrs' (mkUnits "/sysroot") bootFs;
})