mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-02-13 08:19:29 +01:00
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:
parent
e030aa9687
commit
31ab36fe78
@ -27,6 +27,10 @@ in
|
||||
phone = true;
|
||||
sensor = true;
|
||||
};
|
||||
|
||||
system = {
|
||||
mullvad = true;
|
||||
};
|
||||
};
|
||||
|
||||
environment = {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user