From 4a76da467349fb9a888febce49df601140cf2601 Mon Sep 17 00:00:00 2001 From: Max Audron Date: Thu, 5 Oct 2023 20:06:16 +0200 Subject: fix wireguard postShutdown errors --- modules/wireguard/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/wireguard/default.nix b/modules/wireguard/default.nix index 314d53d..6738b29 100644 --- a/modules/wireguard/default.nix +++ b/modules/wireguard/default.nix @@ -58,8 +58,8 @@ with lib; { } oif ${cfg.natInterface} masquerade ''; postShutdown = '' - ${pkgs.nftables}/bin/nft flush table ${ifname} - ${pkgs.nftables}/bin/nft delete table ${ifname} + ${pkgs.nftables}/bin/nft flush table ${ifname} || true + ${pkgs.nftables}/bin/nft delete table ${ifname} || true ''; privateKeyFile = "/root/wireguard/privkey"; peers = peers; -- cgit v1.2.3