Skip to content

Fix nixos-generate-config output redirection #29

Fix nixos-generate-config output redirection

Fix nixos-generate-config output redirection #29

Workflow file for this run

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