mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 17:49: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, ... }:
|
||||||
self',
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
pkgs.writeShellApplication {
|
pkgs.writeShellApplication {
|
||||||
name = "nebula-regen-all-host-certs";
|
name = "nebula-regen-all-host-certs";
|
||||||
|
|
||||||
runtimeInputs = [
|
runtimeInputs = [
|
||||||
pkgs.bitwarden-cli
|
pkgs.bitwarden-cli
|
||||||
pkgs.jq
|
pkgs.jq
|
||||||
|
self'.packages.nebula-regen-host-cert
|
||||||
];
|
];
|
||||||
|
|
||||||
text = ''
|
text = ''
|
||||||
|
|
@ -27,7 +23,7 @@ pkgs.writeShellApplication {
|
||||||
|
|
||||||
for host in $hosts; do
|
for host in $hosts; do
|
||||||
echo "Regenerating certificate for $host..."
|
echo "Regenerating certificate for $host..."
|
||||||
${lib.getExe self'.packages.nebula-regen-host-cert} "$host" "$ca_key"
|
nebula-regen-host-cert "$host" "$ca_key"
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Done!"
|
echo "Done!"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue