From 15baf066fd7b9fed039ab61ae47cd2775e2eba16 Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Mon, 14 Sep 2026 14:15:25 +0200 Subject: [PATCH] nixos/ifstate: use structuredAttrs instead of passAsFile --- nixos/modules/services/networking/ifstate.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/networking/ifstate.nix b/nixos/modules/services/networking/ifstate.nix index a1aeeda26b8c..2c7e15726b27 100644 --- a/nixos/modules/services/networking/ifstate.nix +++ b/nixos/modules/services/networking/ifstate.nix @@ -20,11 +20,12 @@ let yq check-jsonschema ]; + strictDeps = true; value = builtins.toJSON value; - passAsFile = [ "value" ]; + __structuredAttrs = true; } '' - yq --yaml-output . $valuePath > $out + printf "%s" "$value" | yq --yaml-output . > $out check-jsonschema --schemafile "${cfg.package.passthru.jsonschema}" "$out" sed -i $'s|\'!include |!include \'|' $out '';