diff options
| author | Max Audron <audron@cocaine.farm> | 2023-10-05 20:06:16 +0200 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2023-10-05 20:06:16 +0200 |
| commit | 4a76da467349fb9a888febce49df601140cf2601 (patch) | |
| tree | fb667091fadd67f102732330ea815fd69d97e5e0 /modules | |
| parent | disable systemd emergency mode (diff) | |
fix wireguard postShutdown errors
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/wireguard/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
