From 7f977e68793356f43930441a16d66ce1ac0f1877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 26 Feb 2024 12:39:08 +0200 Subject: [PATCH] style nitpicks --- modules/services/deployerbot/default.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/modules/services/deployerbot/default.nix b/modules/services/deployerbot/default.nix index 665daae..a6f15cf 100644 --- a/modules/services/deployerbot/default.nix +++ b/modules/services/deployerbot/default.nix @@ -88,17 +88,14 @@ fi # Optional deployments - ${lib.concatLines (map ({ - derivationTarget, - pingTarget, - }: '' - if ${pkgs.inetutils}/bin/ping -c 1 ${pingTarget}; then + ${lib.concatLines (map (t: '' + if ${pkgs.inetutils}/bin/ping -c 1 ${t.pingTarget}; then ${pkgs.deploy-rs.deploy-rs}/bin/deploy \ --ssh-opts="-i ''${CREDENTIALS_DIRECTORY}/ssh-key" \ --ssh-user=deployerbot-follower \ --confirm-timeout 60 \ --skip-checks \ - --targets ${derivationTarget} -- \ + --targets ${t.derivationTarget} -- \ --accept-flake-config || EXITCODE=1 fi '')