Fix evaluation due to usage of optinal secrets in blowhole

Signed-off-by: magic_rb <magic_rb@redalder.org>
This commit is contained in:
magic_rb 2024-01-22 09:59:27 +01:00
parent 4f32bfe165
commit b78b4ce5be
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -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/
'';
};