From d0858c5547e0b24f352b09c6d0924ec3801cc695 Mon Sep 17 00:00:00 2001 From: reo101 Date: Sat, 4 May 2024 22:47:38 +0300 Subject: [PATCH] chore: add language annotation for `bash` script --- machines/nixos/x86_64-linux/jeeves/wireguard.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/machines/nixos/x86_64-linux/jeeves/wireguard.nix b/machines/nixos/x86_64-linux/jeeves/wireguard.nix index 0fd24ca..d871e0a 100644 --- a/machines/nixos/x86_64-linux/jeeves/wireguard.nix +++ b/machines/nixos/x86_64-linux/jeeves/wireguard.nix @@ -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"