1
0
Fork 0

Use remote builders

This commit is contained in:
Malte 2023-02-03 15:59:04 +01:00
parent 1ea27004bb
commit 5c12e0293f
2 changed files with 3 additions and 3 deletions

View file

@ -15,7 +15,7 @@
if [[ -e "flake.nix" ]]; then
echo "Flake detected."
echo "Running 'flake check'"
${pkgs.nix}/bin/nix flake check
${pkgs.nix}/bin/nix flake check --builders @/etc/nix/machines
echo "Running 'nix build'"
${pkgs.nix}/bin/nix build $FLAGS
else

View file

@ -32,8 +32,8 @@ main = do
git "clone" repo "."
git "checkout" (toString branch)
say "Running checks"
nix "flake" "check"
nix ["build", ".#checks.x86_64-linux.system-checks", "-o", "/var/cache/gc-links/test-config"]
nix "flake" "check" "--builders" "@/etc/nix/machines"
nix ["build", ".#checks.x86_64-linux.system-checks", "-o", "/var/cache/gc-links/test-config", "--builders", "@/etc/nix/machines"]
say "Checks succeeded"
when (branch == "main") $ do
say [i|Deploying new config to localhost.|]