From b94ff46b241e2620860799b1b291cbb2ad05cdcc Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Fri, 6 Feb 2026 15:59:12 +0100 Subject: [PATCH] scripts: Install depending script with the runtime inputs --- scripts/nebula-regen-all-host-certs.nix | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/scripts/nebula-regen-all-host-certs.nix b/scripts/nebula-regen-all-host-certs.nix index 469d25b..23f3ded 100644 --- a/scripts/nebula-regen-all-host-certs.nix +++ b/scripts/nebula-regen-all-host-certs.nix @@ -1,15 +1,11 @@ -{ - self', - pkgs, - lib, - ... -}: +{ self', pkgs, ... }: pkgs.writeShellApplication { name = "nebula-regen-all-host-certs"; runtimeInputs = [ pkgs.bitwarden-cli pkgs.jq + self'.packages.nebula-regen-host-cert ]; text = '' @@ -27,7 +23,7 @@ pkgs.writeShellApplication { for host in $hosts; do echo "Regenerating certificate for $host..." - ${lib.getExe self'.packages.nebula-regen-host-cert} "$host" "$ca_key" + nebula-regen-host-cert "$host" "$ca_key" done echo "Done!"