Fix incorrect usages of getExe

Signed-off-by: magic_rb <richard@brezak.sk>
This commit is contained in:
magic_rb 2023-10-29 17:47:19 +01:00 committed by magic_rb
parent f6b626caec
commit 26b1be45a2
2 changed files with 6 additions and 6 deletions

View file

@ -1,7 +1,7 @@
{ pkgs, lib, secret, ... }:
let
inherit (lib)
getExe;
getExe';
in
{
# boot.kernel.sysctl = {"net.ipv4.ip_forward" = "1";};
@ -30,11 +30,11 @@ in
interfaces."wg0" =
{
postSetup = ''
${getExe pkgs.iptables} -I FORWARD -i wg0 -o wg0 -j ACCEPT
${getExe' pkgs.iptables "iptables"} -I FORWARD -i wg0 -o wg0 -j ACCEPT
'';
postShutdown = ''
${getExe pkgs.iptables} -D FORWARD -i wg0 -o wg0 -j ACCEPT
${getExe' pkgs.iptables "iptables"} -D FORWARD -i wg0 -o wg0 -j ACCEPT
'';
}
// secret.wireguard."altra" or { privateKey = ""; };

View file

@ -1,7 +1,7 @@
{ pkgs, lib, secret, ... }:
let
inherit (lib)
getExe;
getExe';
in
{
boot.kernel.sysctl = {"net.ipv4.ip_forward" = "1";};
@ -26,11 +26,11 @@ in
interfaces."wg0" =
{
postSetup = ''
${getExe pkgs.iptables} -I FORWARD -i wg0 -o wg0 -j ACCEPT
${getExe' pkgs.iptables "iptables"} -I FORWARD -i wg0 -o wg0 -j ACCEPT
'';
postShutdown = ''
${getExe pkgs.iptables} -D FORWARD -i wg0 -o wg0 -j ACCEPT
${getExe' pkgs.iptables "iptables"} -D FORWARD -i wg0 -o wg0 -j ACCEPT
'';
}
// secret.wireguard."toothpick" or { privateKey = ""; };