Fix nixos-generate-config output redirection #29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| nix-validation: | |
| name: Validate NixOS configuration | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Show Nix version | |
| run: | | |
| docker run --rm \ | |
| -e "NIX_CONFIG=experimental-features = nix-command flakes" \ | |
| -v "${{ github.workspace }}:/workspace" \ | |
| -w /workspace \ | |
| nixos/nix:latest \ | |
| nix --version | |
| - name: Run flake checks | |
| run: | | |
| docker run --rm \ | |
| -e "NIX_CONFIG=experimental-features = nix-command flakes" \ | |
| -v "${{ github.workspace }}:/workspace" \ | |
| -w /workspace \ | |
| nixos/nix:latest \ | |
| nix flake check --show-trace | |
| - name: Build polaris system | |
| run: | | |
| docker run --rm \ | |
| -e "NIX_CONFIG=experimental-features = nix-command flakes" \ | |
| -v "${{ github.workspace }}:/workspace" \ | |
| -w /workspace \ | |
| nixos/nix:latest \ | |
| nix build .#nixosConfigurations.myserver.config.system.build.toplevel --show-trace |