From 0a95372a686d8efae363e49b022ab16ec3a1cf45 Mon Sep 17 00:00:00 2001 From: Asmir A Date: Tue, 5 Nov 2024 17:19:40 +0100 Subject: [PATCH] nixy: iproute -> iproute2 --- nixy/configuration.nix | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/nixy/configuration.nix b/nixy/configuration.nix index e3d9554..28100d8 100644 --- a/nixy/configuration.nix +++ b/nixy/configuration.nix @@ -238,8 +238,8 @@ serviceConfig = { Type = "oneshot"; RemainAfterExit = true; - ExecStart = "${pkgs.iproute}/bin/ip netns add %I"; - ExecStop = "${pkgs.iproute}/bin/ip netns del %I"; + ExecStart = "${pkgs.iproute2}/bin/ip netns add %I"; + ExecStop = "${pkgs.iproute2}/bin/ip netns del %I"; }; }; @@ -256,23 +256,23 @@ ExecStart = pkgs.writers.writeBash "wg-up" '' set -e ENDPOINT_IP=$(${pkgs.coreutils-full}/bin/cat "${config.sops.secrets."wg_endpoint_proton".path}") - ${pkgs.iproute}/bin/ip link add proton_wg type wireguard - ${pkgs.iproute}/bin/ip link set proton_wg netns wg - ${pkgs.iproute}/bin/ip -n wg address add 10.2.0.2/32 dev proton_wg - ${pkgs.iproute}/bin/ip netns exec wg \ + ${pkgs.iproute2}/bin/ip link add proton_wg type wireguard + ${pkgs.iproute2}/bin/ip link set proton_wg netns wg + ${pkgs.iproute2}/bin/ip -n wg address add 10.2.0.2/32 dev proton_wg + ${pkgs.iproute2}/bin/ip netns exec wg \ ${pkgs.wireguard-tools}/bin/wg set "proton_wg" private-key "${config.sops.secrets."wg_privkey_proton".path}" - ${pkgs.iproute}/bin/ip netns exec wg \ + ${pkgs.iproute2}/bin/ip netns exec wg \ ${pkgs.wireguard-tools}/bin/wg set "proton_wg" peer "g6DkXWKI/68RsLjROIwCEcyB/ZhyK5Q7OWcz1TtqER0=" \ endpoint "$ENDPOINT_IP:51820" \ persistent-keepalive "25" \ allowed-ips "0.0.0.0/0" - ${pkgs.iproute}/bin/ip -n wg link set lo up - ${pkgs.iproute}/bin/ip -n wg link set proton_wg up - ${pkgs.iproute}/bin/ip -n wg route add default dev proton_wg + ${pkgs.iproute2}/bin/ip -n wg link set lo up + ${pkgs.iproute2}/bin/ip -n wg link set proton_wg up + ${pkgs.iproute2}/bin/ip -n wg route add default dev proton_wg ''; ExecStop = pkgs.writers.writeBash "wg-down" '' - ${pkgs.iproute}/bin/ip -n wg route del default dev proton_wg - ${pkgs.iproute}/bin/ip -n wg link del proton_wg + ${pkgs.iproute2}/bin/ip -n wg route del default dev proton_wg + ${pkgs.iproute2}/bin/ip -n wg link del proton_wg ''; }; };