From 8f960c365db087e2712b4c383146802be339095d Mon Sep 17 00:00:00 2001 From: azban Date: Wed, 18 Mar 2026 12:55:46 -0600 Subject: [PATCH] nixos/pihole-ftl: fix setup script to add allow and block lists There was a change at some point that requires you to pass the type of list to the API via a query parameter. This modifies that, and was verified by setting up the service and checking pihole-ftl-setup.service logs --- nixos/modules/services/networking/pihole-ftl-setup-script.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/pihole-ftl-setup-script.nix b/nixos/modules/services/networking/pihole-ftl-setup-script.nix index 692d9fc2b050..944d180dda17 100644 --- a/nixos/modules/services/networking/pihole-ftl-setup-script.nix +++ b/nixos/modules/services/networking/pihole-ftl-setup-script.nix @@ -41,7 +41,8 @@ in local payload="$1" echo "Adding list: $payload" - local result=$(PostFTLData "lists" "$payload") + local type=$($jq -r '.type' <<< "$payload") + local result=$(PostFTLData "lists?type=$type" "$payload") local error="$($jq '.error' <<< "$result")" if [[ "$error" != "null" ]]; then