fix: eliminate configuration evaluation warnings

This commit is contained in:
2026-08-02 13:20:59 -04:00
parent 58f6b108c3
commit 8e8752e519
4 changed files with 11 additions and 1 deletions

View File

@@ -100,7 +100,11 @@
# `nix flake check` builds each host's toplevel.
checks.x86_64-linux = lib.mapAttrs (
_name: host: host.config.system.build.toplevel
name: host:
if host.config.warnings == [] then
host.config.system.build.toplevel
else
throw "Host ${name} has evaluation warnings:\n${lib.concatStringsSep "\n" host.config.warnings}"
) self.nixosConfigurations;
};
}