Make routing all traffic over wireguard tunnel work

Fixes #26 (regression introduced in
126a0dad4b)

This is not an ideal solution, since it disables some features of the
firewall. Ideally, the mullvad configuration would be declaratively
managed and include a PostUp and PreDown command that adds routes to the
tunnel endpoint to the physical interface.
pull/48/head
Simon Bruder 2021-01-24 14:44:00 +01:00
parent bcbd5e772a
commit 603a006df8
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 4 additions and 0 deletions

View File

@ -99,6 +99,10 @@ in
# NixOS state version (see https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion)
system.stateVersion = "20.03";
# When this is set to true (default), routing everything through a
# wireguard tunnel does not work.
networking.firewall.checkReversePath = "loose";
nix = {
nixPath = [
"/var/src" # pinned nixpkgs and configuration