name: CI on: push: branches: ["main"] pull_request: jobs: check: runs-on: nix env: PATH: "/nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/sbin:/run/current-system/sw/bin:/usr/bin:/bin" steps: - uses: actions/checkout@v4 - name: Nix flake check run: nix flake check --no-build - name: Format check run: nix fmt -- --check . - name: Build NixOS configs (dry-run) run: | nix build .#nixosConfigurations.cyper-desktop.config.system.build.toplevel --dry-run nix build .#nixosConfigurations.cyper-controller.config.system.build.toplevel --dry-run nix build .#nixosConfigurations.cyper-proxy.config.system.build.toplevel --dry-run nix build .#nixosConfigurations.cyper-node-1.config.system.build.toplevel --dry-run nix build .#nixosConfigurations.cyper-node-2.config.system.build.toplevel --dry-run - name: Eval darwin config (Linux-safe) run: nix eval .#darwinConfigurations.cyper-mac.system