From b7c9bf8be6a5b712e2e12f489b738e2fbdc02a2f Mon Sep 17 00:00:00 2001 From: tdback Date: Tue, 12 Nov 2024 22:08:14 -0500 Subject: [PATCH] trim any newlines in the password, or else it won't set right --- containers/pihole/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/containers/pihole/default.nix b/containers/pihole/default.nix index ffcfa8e..bb588fb 100644 --- a/containers/pihole/default.nix +++ b/containers/pihole/default.nix @@ -39,7 +39,7 @@ in let password = config.age.secrets.piholeAdminPass.path; in '' - podman exec -it pihole pihole -a -p ${password} + podman exec -it pihole pihole -a -p "$(tr -d '\n' < ${password})" ''; networking.firewall = {