From 7a4a74a6731e17bfae44a83fac2ff86d48e85ffb Mon Sep 17 00:00:00 2001 From: Luke Else Date: Fri, 21 Mar 2025 14:27:24 +0000 Subject: [PATCH] Added actions --- .gitea/workflows/nixos.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .gitea/workflows/nixos.yml diff --git a/.gitea/workflows/nixos.yml b/.gitea/workflows/nixos.yml new file mode 100644 index 0000000..1a0ed5c --- /dev/null +++ b/.gitea/workflows/nixos.yml @@ -0,0 +1,29 @@ +name: NixOS Configuration Check + +on: + push: + branches: + - main + pull_request: + +jobs: + nixos-check: + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Install Nix + uses: cachix/install-nix-action@v22 + + - name: Show Nix version + run: nix --version + + - name: Run nix flake check + run: nix flake check + + - name: Attempt to build configuration (optional) + run: | + nix build .#nixosConfigurations.desktop.config.system.build.toplevel + nix build .#nixosConfigurations.laptop.config.system.build.toplevel + nix build .#nixosConfigurations.vm.config.system.build.toplevel