summaryrefslogtreecommitdiffstats
path: root/modules/vpn/mullvad
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2024-01-07 12:00:08 -0500
committerJon Santmyer <jon@jonsantmyer.com>2024-01-07 12:00:08 -0500
commit7b79203f54853733d4fae88943829d0e24e6e49f (patch)
treea352d199fad7453332b9308a6295164157729f27 /modules/vpn/mullvad
parent184bd30bcb303104a4981ac742d8f8961c5477e7 (diff)
downloadnix-config-7b79203f54853733d4fae88943829d0e24e6e49f.tar.gz
nix-config-7b79203f54853733d4fae88943829d0e24e6e49f.tar.bz2
nix-config-7b79203f54853733d4fae88943829d0e24e6e49f.zip
massive overhaul
Diffstat (limited to 'modules/vpn/mullvad')
-rw-r--r--modules/vpn/mullvad/default.nix49
1 files changed, 0 insertions, 49 deletions
diff --git a/modules/vpn/mullvad/default.nix b/modules/vpn/mullvad/default.nix
deleted file mode 100644
index c6c9038..0000000
--- a/modules/vpn/mullvad/default.nix
+++ /dev/null
@@ -1,49 +0,0 @@
-{ config, lib, pkgs, user, ... }:
-with lib;
-{
- options = {
- mullvad-vpn = {
- enable = mkOption {
- type = types.bool;
- default = false;
- };
- };
- };
-
- config = mkIf (config.mullvad-vpn.enable)
- {
- services.openvpn = {
- servers = {
- MullvadVPN-US-Miami = {
- config = ''
-client
-dev tun
-resolv-retry infinite
-nobind
-persist-key
-persist-tun
-verb 3
-remote-cert-tls server
-ping 10
-ping-restart 60
-sndbuf 524288
-rcvbuf 524288
-cipher AES-256-GCM
-tls-cipher TLS-DHE-RSA-WITH-AES-256-GCM-SHA384
-proto udp
-auth-user-pass /etc/nixos/secrets/mullvad_us_mia/mullvad_userpass.txt
-ca /etc/nixos/secrets/mullvad_us_mia/mullvad_ca.crt
-tun-ipv6
-script-security 2
-up /etc/nixos/secrets/mullvad_us_mia/update-resolv-conf
-down /etc/nixos/secrets/mullvad_us_mia/update-resolv-conf
-fast-io
-remote-random
-remote 146.70.187.194 1302 # us-mia-ovpn-101
-remote 146.70.183.66 1302 # us-mia-ovpn-102
- '';
- };
- };
- };
- };
-}