ci: eval configs via nix eval (allow IFD) instead of flake check --no-build
CI / lint (push) Successful in 1m11s
CI / eval (push) Successful in 3m9s

user.nix fetches SSH keys via fetchurl+readFile (import-from-derivation);
--no-build blocks the IFD fetch, failing eval in a fresh store. Evaluating
the toplevel/activation drvPaths permits IFD without building the toplevels.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Miguel Palhas
2026-06-27 20:34:26 +01:00
parent 82205727cd
commit d9000c0d00
+13 -2
View File
@@ -23,8 +23,19 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- name: Evaluate all flake outputs (no build)
run: nix flake check --no-build
# Evaluate each config's toplevel/activation drvPath. This exercises the
# full module system and permits import-from-derivation (user.nix fetches
# SSH keys via fetchurl+readFile), but does NOT build the toplevels.
# `nix flake check --no-build` can't be used: --no-build blocks the IFD.
- name: Evaluate NixOS + home configs
run: |
set -euo pipefail
for h in arrakis konishi; do
echo "== nixos/$h =="
nix eval --raw ".#nixosConfigurations.$h.config.system.build.toplevel.drvPath"; echo
echo "== home/naps62@$h =="
nix eval --raw ".#homeConfigurations.\"naps62@$h\".activationPackage.drvPath"; echo
done
lint:
runs-on: ubuntu-latest