From 045f2208ddbb2558725964a17aff98c2185c6524 Mon Sep 17 00:00:00 2001 From: plasmagoat Date: Sun, 8 Jun 2025 03:31:29 +0200 Subject: [PATCH] cachix --- .forgejo/workflows/build-image.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/build-image.yml b/.forgejo/workflows/build-image.yml index db7b759..3de8072 100644 --- a/.forgejo/workflows/build-image.yml +++ b/.forgejo/workflows/build-image.yml @@ -53,8 +53,19 @@ jobs: echo "Testing SSH connection to $NIXOS_BUILER_HOST..." ssh -o StrictHostKeyChecking=yes $NIXOS_BUILER_USER@$NIXOS_BUILER_HOST "echo 'SSH success. Hostname:' && hostname" + - name: Setup Cachix + run: | + nix-env -iA cachix -f https://cachix.org/api/v1/install + cachix use plasmagoat + - name: Build NixOS image - run: nix build .#base --builders "ssh://$NIXOS_BUILER_USER@$NIXOS_BUILER_HOST x86_64-linux ~/.ssh/id_rsa 1 1 kvm" --max-jobs 0 + run: | + nix build .#base \ + --no-link --print-out-paths \ + --builders "ssh://$NIXOS_BUILER_USER@$NIXOS_BUILER_HOST x86_64-linux ~/.ssh/id_rsa 1 1 kvm" \ + --max-jobs 0 \ + --no-link --print-out-paths \ + | cachix push plasmagoat # - name: Upload image to Proxmox and manage templates # run: |