From 862fc8961bf0091dcb4483c8fc1a28cec2e4231e Mon Sep 17 00:00:00 2001 From: Marcus Huntemann Date: Sat, 24 Aug 2024 15:16:50 +0000 Subject: [PATCH] added runner workflow --- .gitea/workflows/validate-nixos-config.yml | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .gitea/workflows/validate-nixos-config.yml diff --git a/.gitea/workflows/validate-nixos-config.yml b/.gitea/workflows/validate-nixos-config.yml new file mode 100644 index 0000000..3fa532b --- /dev/null +++ b/.gitea/workflows/validate-nixos-config.yml @@ -0,0 +1,23 @@ +name: Validate NixOS Config + +on: + push: + branches: + - main # Adjust this to match your main branch name + pull_request: + branches: + - main # Adjust this to match your main branch name + +jobs: + validate: + runs-on: nixos # This assumes you have a runner with the "flakes-action" label + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Validate NixOS configuration + run: | + nix flake check + nix build .#nixosConfigurations.nixbox.config.system.build.toplevel --dry-run + env: + NIX_CONFIG: "experimental-features = nix-command flakes"