phone: Add mullvad support by disabling checkReversePath

`networking.firewall.checkReversePath` was being set to "loose" from
Mullvad VPN, which was causing an issue with the kernel used by the
PinePhone with Mobile NixOS.

By changing this option to `false`, we get rid of the "This kernel does
not support rpfilter" error, which seems to be inaccurate due to the
result of `sysctl -a | grep \\.rp_filter` on the phone being consistent
with the result on the laptop.
This commit is contained in:
Donovan Glover 2024-06-21 19:12:01 -04:00
parent e030aa9687
commit 31ab36fe78
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 7 additions and 0 deletions

View File

@ -27,6 +27,10 @@ in
phone = true;
sensor = true;
};
system = {
mullvad = true;
};
};
environment = {

View File

@ -227,6 +227,8 @@ in
allowedTCPPorts = mkIf allowDevPort [
3000
];
checkReversePath = mkIf phone (lib.mkForce false);
};
};
@ -236,6 +238,7 @@ in
mullvad-vpn = mkIf mullvad {
enable = true;
enableExcludeWrapper = false;
package = pkgs.mullvad-vpn;
};
postgresql = mkIf postgres {