mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-25 01:26:14 +01:00
Fix incorrect usages of getExe
Signed-off-by: magic_rb <richard@brezak.sk>
This commit is contained in:
parent
f6b626caec
commit
26b1be45a2
|
@ -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 = ""; };
|
||||
|
|
|
@ -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 = ""; };
|
||||
|
|
Loading…
Reference in a new issue