chore: add language annotation for bash script

This commit is contained in:
reo101 2024-05-04 22:47:38 +03:00
parent 752f4ea454
commit d0858c5547
Signed by: reo101
GPG key ID: 675AA7EF13964ACB

View file

@ -14,7 +14,7 @@
mode = "077";
rekeyFile = "${inputs.self}/secrets/home/jeeves/wireguard/key.age";
generator = {
script = { lib, pkgs, file, ... }: ''
script = { lib, pkgs, file, ... }: /* bash */ ''
priv=$(${pkgs.wireguard-tools}/bin/wg genkey)
${pkgs.wireguard-tools}/bin/wg pubkey <<< "$priv" > ${lib.escapeShellArg (lib.removeSuffix ".age" file + ".pub")}
echo "$priv"