From ff46e752a12a20c477b4813df7ab58b4df438ec0 Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Mon, 24 Mar 2025 22:50:32 +0000 Subject: [PATCH] tests: add useful attrs to test passthru --- tests/main.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/main.nix b/tests/main.nix index 99b53668..56ad65d4 100644 --- a/tests/main.nix +++ b/tests/main.nix @@ -34,7 +34,14 @@ let ]; }; in - configuration.config.build.test; + configuration.config.build.test.overrideAttrs (old: { + passthru = + old.passthru or { } + // builtins.removeAttrs configuration [ "_type" ] + // { + inherit file module; + }; + }); # List of files containing configurations testFiles = fetchTests ./test-sources;