scripts: Install depending script with the runtime inputs

This commit is contained in:
SebastianStork 2026-02-06 15:59:12 +01:00
parent d54e079db8
commit b94ff46b24
Signed by: SebastianStork
SSH key fingerprint: SHA256:iEM011ogNMG1q8+U500adGu/9rpPuZ2KnFtbdLeqTiI

View file

@ -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!"