From 26b1be45a2f3055768622342cea10f7b918f7b25 Mon Sep 17 00:00:00 2001 From: magic_rb Date: Sun, 29 Oct 2023 17:47:19 +0100 Subject: [PATCH] Fix incorrect usages of `getExe` Signed-off-by: magic_rb --- nixos/systems/altra/networking.nix | 6 +++--- nixos/systems/toothpick/networking.nix | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/nixos/systems/altra/networking.nix b/nixos/systems/altra/networking.nix index d8d0675..fc2bfc1 100644 --- a/nixos/systems/altra/networking.nix +++ b/nixos/systems/altra/networking.nix @@ -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 = ""; }; diff --git a/nixos/systems/toothpick/networking.nix b/nixos/systems/toothpick/networking.nix index 4ab71ea..73c1c1c 100644 --- a/nixos/systems/toothpick/networking.nix +++ b/nixos/systems/toothpick/networking.nix @@ -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 = ""; };