From 7e6617d3f466d968e353927e4e060f1bdf2c995b Mon Sep 17 00:00:00 2001 From: Mykhailo Nikiforov Date: Thu, 14 Nov 2024 19:52:20 +0200 Subject: [PATCH] build: add cachix, update nixpkgs and install nix action --- .gitea/workflows/check-flake.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/check-flake.yml b/.gitea/workflows/check-flake.yml index f520187..7ab8ee6 100644 --- a/.gitea/workflows/check-flake.yml +++ b/.gitea/workflows/check-flake.yml @@ -16,10 +16,16 @@ jobs: - name: Setup sudo (required for the next step) run: apt-get update && apt-get install -y sudo - name: Setup nix - uses: cachix/install-nix-action@v27 + uses: cachix/install-nix-action@v30 with: + extra_nix_config: | + experimental-features = nix-command flakes github_access_token: ${{ secrets.GH_ACCESS_TOKEN }} - nix_path: nixpkgs=channel:nixos-23.11 + nix_path: nixpkgs=channel:nixos-24.05 + - uses: cachix/cachix-action@v15 + with: + name: palkx + authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} - name: Build nix flake run: | while true; do sleep 1; rm -rf /homeless-shelter; done &