Watch
0
0
Fork
You've already forked hyperhive
0

nightly vm test: full single-host swarm setup up to the meta flake

This commit is contained in:
atlas 2026-11-06 20:25:38 +01:00
commit af434e1374

View file

@ -2,7 +2,7 @@
# prebuilds: two deterministic one-commit repos and one toplevel, all built from
# `self`.
#
# hyperhive/hyperhive the source tree of `self`
# hyperhive/hyperhive the source tree of `self` (./hyperhive-fixture-repo.nix)
# internal/meta the meta flake of one archetype agent, pinned to the
# first repo's commit
#
@ -29,29 +29,7 @@ let
hyperhive = self;
}).nixosConfigurations.${agent}.config.system.build.toplevel;
commitEnv = ''
export HOME=$TMPDIR
export GIT_AUTHOR_NAME=fixture GIT_AUTHOR_EMAIL=fixture@forge.test
export GIT_COMMITTER_NAME=fixture GIT_COMMITTER_EMAIL=fixture@forge.test
export GIT_AUTHOR_DATE="946684800 +0000" GIT_COMMITTER_DATE="946684800 +0000"
'';
hyperhiveRepo =
pkgs.runCommand "hyperhive-fixture-repo"
{
nativeBuildInputs = [ pkgs.git ];
}
''
${commitEnv}
cp -a ${self} work
chmod -R u+w work
git -C work init -q -b main
git -C work add -f .
git -C work commit -q -m "hyperhive source tree"
mkdir $out
git clone -q --bare work $out/repo.git
git -C work rev-parse HEAD > $out/rev
'';
inherit (import ./hyperhive-fixture-repo.nix { inherit pkgs self; }) commitEnv hyperhiveRepo;
# `nix flake lock`'s result for the template: hyperhive's own nodes next to a
# `hyperhive` node pinned by URL and rev, whose follows paths start at the