name: nixos # Every push: evaluate every host, so a broken config never reaches main. # Deploying is not CI's job: each host pulls main itself (comin, # nixos/modules/comin.nix). CI holds no credentials for the servers. run-name: "evaluate: ${{ github.ref_name }}" on: push: paths: - 'nixos/**' - '.forgejo/workflows/nixos.yaml' workflow_dispatch: jobs: nixos: runs-on: nix-latest env: NIX_CONFIG: | experimental-features = nix-command flakes build-users-group = sandbox = false steps: - name: Prepare container for actions run: nix-env -iA nixpkgs.nodejs_22 - name: Checkout uses: actions/checkout@v7.0.1 # Job containers are unprivileged, so Nix cannot sandbox builds in # them. Evaluating catches config errors; the build itself happens # on each server. - name: Evaluate working-directory: nixos run: | for host in asxpio-ops asxpio-services; do nix eval --raw ".#nixosConfigurations.$host.config.system.build.toplevel.drvPath" echo done