linux-builder-vz: require store registration for boot

This guarantees that the builder will never boot without prepared nixdb.
This commit is contained in:
Ihar Hrachyshka
2026-08-27 22:35:52 -04:00
parent dc9250e612
commit b726f29a3c

View File

@@ -136,7 +136,7 @@ in
systemd.services.register-nix-paths = lib.mkIf config.nix.enable {
# Runs early so the store DB is populated first; `--load-db` needs no daemon.
unitConfig.DefaultDependencies = false;
wantedBy = [ "sysinit.target" ];
requiredBy = [ "sysinit.target" ];
before = [
"sysinit.target"
"shutdown.target"