From 74dc5556d14b67164f2f1f8e406317515eecb3a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Wed, 29 Jul 2026 19:33:29 -0700 Subject: [PATCH] nixos/knot-resolver: use remarshal v2 --- nixos/modules/services/networking/knot-resolver.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/networking/knot-resolver.nix b/nixos/modules/services/networking/knot-resolver.nix index d943b29b5b73..4aa8d47f110a 100644 --- a/nixos/modules/services/networking/knot-resolver.nix +++ b/nixos/modules/services/networking/knot-resolver.nix @@ -10,17 +10,17 @@ let configFile = pkgs.callPackage ( { runCommandLocal, - remarshal_0_17, + remarshal, stdenv, }: runCommandLocal "knot-resolver.yaml" { - nativeBuildInputs = [ remarshal_0_17 ]; + nativeBuildInputs = [ remarshal ]; value = builtins.toJSON cfg.settings; passAsFile = [ "value" ]; } '' - json2yaml "$valuePath" "$out" + remarshal --from json --to yaml-1.1 "$valuePath" "$out" ${ # We skip validation if the build platform cannot execute # the binary targeting the host platform. lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''