From 54431b42d7b5f4830adecc3188bc6987e5f2dfc6 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Sun, 1 Dec 2024 14:18:16 -0500 Subject: [PATCH] style(esphome): add syntax highlighting --- nixosModules/esphome-plus/default.nix | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/nixosModules/esphome-plus/default.nix b/nixosModules/esphome-plus/default.nix index f46058ac..bc893adb 100644 --- a/nixosModules/esphome-plus/default.nix +++ b/nixosModules/esphome-plus/default.nix @@ -70,13 +70,27 @@ in { mkdir -p ${stateDir} fi - ${optionalString (cfg.secretsFile != null) ''cp -f "$(realpath "${cfg.secretsFile}")" ${stateDir}/secrets.yaml''} + ${optionalString + (cfg.secretsFile != null) + # bash + '' + cp -f "$(realpath "${cfg.secretsFile}")" ${stateDir}/secrets.yaml + ''} - ${optionalString cfg.deleteUnmanaged ''find ${stateDir} -name "*.yaml" ! -name "secrets.yaml" -delete''} + ${optionalString + cfg.deleteUnmanaged + # bash + '' + find ${stateDir} -name "*.yaml" ! -name "secrets.yaml" -delete + ''} ${concatMapStringsSep "\n" - (dev: ''cp -f "$(realpath "${dev.file}")" ${stateDir}/"${dev.name}"'') + (dev: + # bash + '' + cp -f "$(realpath "${dev.file}")" ${stateDir}/"${dev.name}" + '') (mapAttrsToList mkESPConf cfg.firmwareConfigs)} ''; });