summaryrefslogtreecommitdiff
path: root/modules/networking/vpn
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-20 05:36:20 -0700
committerFuwn <[email protected]>2024-09-20 05:36:20 -0700
commitd9747c64b038943253eaafdc59a49d5face46dab (patch)
treeb452d15a7f20e9f4bb70ec9f9040137bec1072f8 /modules/networking/vpn
parenthimeji: move containers over from seti (diff)
downloadnixos-config-d9747c64b038943253eaafdc59a49d5face46dab.tar.xz
nixos-config-d9747c64b038943253eaafdc59a49d5face46dab.zip
modules: server and core modules
Diffstat (limited to 'modules/networking/vpn')
-rw-r--r--modules/networking/vpn/default.nix6
-rw-r--r--modules/networking/vpn/pia.nix10
-rw-r--r--modules/networking/vpn/tailscale.nix15
3 files changed, 0 insertions, 31 deletions
diff --git a/modules/networking/vpn/default.nix b/modules/networking/vpn/default.nix
deleted file mode 100644
index 92a11b0..0000000
--- a/modules/networking/vpn/default.nix
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- imports = [
- ./pia.nix
- ./tailscale.nix
- ];
-}
diff --git a/modules/networking/vpn/pia.nix b/modules/networking/vpn/pia.nix
deleted file mode 100644
index d52dbf8..0000000
--- a/modules/networking/vpn/pia.nix
+++ /dev/null
@@ -1,10 +0,0 @@
-{ secrets, ... }:
-{
- services.pia = {
- enable = true;
-
- authUserPass = {
- inherit (secrets.pia) username password;
- };
- };
-}
diff --git a/modules/networking/vpn/tailscale.nix b/modules/networking/vpn/tailscale.nix
deleted file mode 100644
index 21f471a..0000000
--- a/modules/networking/vpn/tailscale.nix
+++ /dev/null
@@ -1,15 +0,0 @@
-{ config, ... }:
-{
- networking.firewall.trustedInterfaces = [ "${config.services.tailscale.interfaceName}" ];
-
- services.tailscale = {
- enable = true;
- useRoutingFeatures = "both";
- };
-
- # <https://tailscale.com/kb/1019/subnets/?tab=linux#step-1-install-the-tailscale-client>
- boot.kernel.sysctl = {
- "net.ipv4.ip_forward" = true;
- "net.ipv6.conf.all.forwarding" = true;
- };
-}