From 528a7d0cb9668fb633d0ce39fb2255c94e4f8250 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Thu, 11 Jan 2024 12:59:10 +0100 Subject: [PATCH] transposition: Explain incomplete usage of transposition Abort because this is a clear programming error, that should never be caught. --- modules/transposition.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/transposition.nix b/modules/transposition.nix index 244b736..d532e76 100644 --- a/modules/transposition.nix +++ b/modules/transposition.nix @@ -101,7 +101,10 @@ in lib.mapAttrs (attrName: attrConfig: mapAttrs - (system: v: v.${attrName}) + (system: v: v.${attrName} or ( + abort '' + Could not find option ${attrName} in the perSystem module. It is required to declare such an option whenever transposition. is defined (and in this instance is ${attrName}). + '')) config.allSystems ) config.transposition;