Files
nixos/.gitea/workflows/evaluate-all-hosts.yml
T
oqyude ff5e28a9c4
nixos flake checks / invariant-checks (push) Canceled after 18s
test-runner / smoke (push) Successful in 1s
review 2026-11-26: применить решения владельца
- homebox: HBOX_OPTIONS_ALLOW_REGISTRATION=false (публичный vhost без Authelia)
- sapphira: MemoryMax=2G для nixos-prebuild (был без лимита; rydiwo — 6G)
- otreca: убрать неиспользуемую samba (445 режется nftables, nmbd off)
- mini-pc: удалить deprecated nixpkgs.config.pulseaudio
- CI: шаг epral — stateVersion вместо несуществующего build.toplevel (T64)
- AGENTS: исправить ложные строки про импорты, зафиксировать SMB как принятый риск
- metastate: T65 (/mnt/services → /var/lib/services), 15 open / 28 rows

Проверено: treefmt (0 changed), .ci/checks.sh --no-build 7/0,
eval drvPath sapphira/atoridu/otreca. nix flake check целиком не гонялся.
2026-11-27 05:50:54 +03:00

59 lines
2.4 KiB
YAML

name: evaluate all hosts
# The everyday workflow (.gitea/workflows/nix-checks.yml) evaluates ONE host —
# sapphira — because the runner *is* sapphira: evaluating all seven
# configurations there took 40+ minutes and pushed the production host into
# swap. That left the other six hosts unevaluated by CI, and it was not a
# theoretical gap: `configurations/mobile.nix:12` once imported a
# non-existent `lib/xlib.nix` and epral silently stopped building
# (AGENTS.md invariant 1).
#
# This workflow closes that gap. It is MANUAL on purpose: on the self-hosted
# runner it is a heavy, slow sweep, so it runs when someone asks for it, not
# on every push.
#
# What it does: evaluates every configuration (no build). Evaluation is
# enough to catch the class of breakage above — a broken import, a missing
# attribute, a type error — and it needs no store write access, which the
# runner user does not have (see the sapphira workflow for that constraint).
#
# To run it: push → Actions → "evaluate all hosts" → Run workflow.
on:
workflow_dispatch:
jobs:
evaluate-all:
runs-on: native
# Seven configurations on a 2-core / 5.6 GiB host. Generous: the point is
# to finish, not to be fast.
timeout-minutes: 120
steps:
- uses: actions/checkout@v4
- name: toolchain probe
run: |
nix --version
git --version
- name: evaluate every NixOS configuration
run: |
set -euo pipefail
for host in atoridu rydiwo otreca sapphira wsl default; do
echo "== ${host} =="
nix --extra-experimental-features "nix-command flakes" eval --raw \
".#nixosConfigurations.${host}.config.system.build.toplevel.drvPath"
echo
done
- name: evaluate the nix-on-droid configuration
# nix-on-droid has no `system.build.toplevel` (T64); the output is
# `build.activationPackage`, and it needs `--impure` (activation-script
# uses builtins.storePath). A full build also needs an aarch64 proot
# that the x86_64 runner does not have. `stateVersion` forces the whole
# module tree to evaluate (broken imports/options surface here) without
# either dependency; the full build stays a manual check on the device.
run: |
nix --extra-experimental-features "nix-command flakes" eval --impure --raw \
'.#nixOnDroidConfigurations.epral.config.system.stateVersion'