Mullvad VPN: Difference between revisions
m Category:VPN added |
Update for https://github.com/NixOS/nixpkgs/pull/414831 |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 3: | Line 3: | ||
== Installation == | == Installation == | ||
To install Mullvad VPN, | To install Mullvad VPN, simply enable the service in the system configuration: | ||
{{file|configuration.nix|nix|<nowiki> | {{file|configuration.nix|nix|<nowiki> | ||
| Line 13: | Line 11: | ||
</nowiki>}} | </nowiki>}} | ||
The GUI application may be enabled in addition to the main Mullvad service: | |||
{{file|configuration.nix|nix|<nowiki> | {{file|configuration.nix|nix|<nowiki> | ||
{ pkgs, ... }: | { pkgs, ... }: | ||
{ | { | ||
services.mullvad-vpn. | services.mullvad-vpn.gui.enable = true; | ||
} | } | ||
</nowiki>}} | </nowiki>}} | ||
| Line 126: | Line 124: | ||
"ua" | "ua" | ||
]; | ]; | ||
africa = [ "za" ]; | africa = [ | ||
"ng" | |||
"za" | |||
]; | |||
asia = [ | asia = [ | ||
"hk" | "hk" | ||
| Line 132: | Line 133: | ||
"il" | "il" | ||
"jp" | "jp" | ||
"my" | |||
"ph" | |||
"sg" | "sg" | ||
"th" | "th" | ||
| Line 232: | Line 235: | ||
=== Autostarting the GUI application === | === Autostarting the GUI application === | ||
If you don't want to rely on Mullvad's autostart file in <code>~/.config/autostart</code>, | If you don't want to rely on Mullvad's autostart file in <code>~/.config/autostart</code>, you can set up an autostart file with <code>makeAutostartItem</code>: | ||
{{file|configuration.nix|nix|<nowiki> | {{file|configuration.nix|nix|<nowiki> | ||
| Line 246: | Line 249: | ||
} | } | ||
</nowiki>}} | </nowiki>}} | ||
This is useful when the home directory is [[Impermanence|stateless]], as the file configured by Mullvad would not be persistent. | |||
[[Category:VPN]] | [[Category:VPN]] | ||
[[Category:Networking]] | [[Category:Networking]] | ||