build-clan: Throw better error when _class is not provided by nixpkgs
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user