diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bcd1ab4a..ce28d92a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,3 +27,11 @@ jobs: - uses: actions/checkout@v3 - uses: cachix/install-nix-action@v22 - run: nix fmt -- --check **/*.nix + example: + name: nix flake check ./example + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: cachix/install-nix-action@v22 + - run: ln -s hardware/laptop.nix examples/hardware-configuration.nix + - run: nix flake check ./example --no-write-lock-file