deploy guard: expose binary
All checks were successful
Build and Deploy / mreow (push) Successful in 1m21s
Build and Deploy / yarn (push) Successful in 45s
Build and Deploy / muffin (push) Successful in 1m26s

This commit is contained in:
2026-04-22 07:28:56 -04:00
parent b0b4bcb0b3
commit b21bb3b33b
3 changed files with 28 additions and 5 deletions

View File

@@ -159,6 +159,13 @@ in
config = lib.mkIf cfg.enable {
environment.systemPackages = [ aggregator ];
# Expose the aggregator as a named system build so preflight drivers
# (deploy.sh, CI) can build just this derivation and invoke it by its
# /nix/store path — avoiding the bootstrap gap where
# /run/current-system/sw/bin/deploy-guard-check may not yet exist on the
# target (first deploy of the feature, post-rollback, etc).
system.build.deployGuardCheck = aggregator;
assertions = [
{
assertion = cfg.checks != { };