From 6ebda21bc4ade678743f02fe232dd7fcbd3a7d0a Mon Sep 17 00:00:00 2001 From: MOIS3Y Date: Mon, 15 Jun 2026 16:26:42 +0900 Subject: [PATCH] ci: nix image for job --- .gitea/workflows/nix-test.yaml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/nix-test.yaml b/.gitea/workflows/nix-test.yaml index 0fd6283..97d5dd8 100644 --- a/.gitea/workflows/nix-test.yaml +++ b/.gitea/workflows/nix-test.yaml @@ -1,22 +1,21 @@ -name: Nix Test +name: Nix Test (Isolated) on: [push] jobs: test-nix: - runs-on: ubuntu-latest + # Теперь используем наш новый лейбл nixos + runs-on: nixos steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Install Nix - uses: https://github.com/nixbuild/nix-quick-install-action@v30 - with: - nix_conf: | - sandbox = false - experimental-features = nix-command flakes - - name: Build with Nix run: | + # Включаем flakes (в образе nixos/nix они могут быть не активны по умолчанию) + export NIX_CONFIG="experimental-features = nix-command flakes" + + # Просто собираем nix build .#default + + # Проверяем результат ./result/bin/hello -