forked from mirrors_public/oddlama_nix-config
fix: wireguard generator pipe issue
This commit is contained in:
parent
e61c82ebfc
commit
4abefb0811
3 changed files with 5 additions and 11 deletions
|
@ -171,9 +171,9 @@
|
|||
file,
|
||||
...
|
||||
}: ''
|
||||
${pkgs.wireguard-tools}/bin/wg genkey \
|
||||
| tee /dev/stdout \
|
||||
| ${pkgs.wireguard-tools}/bin/wg pubkey > ${lib.escapeShellArg (lib.removeSuffix ".age" file + ".pub")}
|
||||
priv=$(${pkgs.wireguard-tools}/bin/wg genkey)
|
||||
${pkgs.wireguard-tools}/bin/wg pubkey <<< "$priv" > ${lib.escapeShellArg (lib.removeSuffix ".age" file + ".pub")}
|
||||
echo "$priv"
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue