build-clan: Throw better error when _class is not provided by nixpkgs

This commit is contained in:
DavHau
2025-04-28 14:29:27 +07:00
parent 8c58643d86
commit cbdfe35748

View File

@@ -122,7 +122,16 @@ in
(lib.mapAttrs ( (lib.mapAttrs (
name: v: name: v:
( (
{ _class, ... }: { ... }@args:
let
_class =
args._class or (throw ''
Your version of nixpkgs is incompatible with the latest clan.
Please update nixpkgs input to the latest nixos-unstable or nixpkgs-unstable.
Run:
nix flake update nixpkgs
'');
in
{ {
imports = [ imports = [
(lib.modules.importApply ./machineModules/forName.nix { (lib.modules.importApply ./machineModules/forName.nix {