From b78b4ce5bec5aa8cfc0a7d022090c0367d2cf1ab Mon Sep 17 00:00:00 2001 From: magic_rb Date: Mon, 22 Jan 2024 09:59:27 +0100 Subject: [PATCH] Fix evaluation due to usage of optinal secrets in blowhole Signed-off-by: magic_rb --- nixos/systems/blowhole/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/systems/blowhole/default.nix b/nixos/systems/blowhole/default.nix index 81cb5fc..e0bb1ef 100644 --- a/nixos/systems/blowhole/default.nix +++ b/nixos/systems/blowhole/default.nix @@ -21,7 +21,7 @@ in }; modules = singleton - ({ pkgs, config, ... }: + ({ secret, pkgs, config, ... }: { imports = [ ./bind.nix @@ -119,7 +119,7 @@ in }; script = '' mkdir -p /mnt/kyle/infrastructure/home-assistant/home-assistant/pyscript - rsync --chown 403:403 --chmod Du=rwx,Dgo=rx,Fu=rw,Fgo=r -arvc --delete ${secret.pyscript}/. /mnt/kyle/infrastructure/home-assistant/home-assistant/pyscript/ + rsync --chown 403:403 --chmod Du=rwx,Dgo=rx,Fu=rw,Fgo=r -arvc --delete ${secret.pyscript or ""}/. /mnt/kyle/infrastructure/home-assistant/home-assistant/pyscript/ ''; };