mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 15:29:07 +01:00
scripts: Install depending script with the runtime inputs
This commit is contained in:
parent
d54e079db8
commit
b94ff46b24
1 changed files with 3 additions and 7 deletions
|
|
@ -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!"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue