From 7dd785b1005aec643004c06eaa7af690b00cb48f Mon Sep 17 00:00:00 2001 From: seraphim <18ycm9tx@anonaddy.me> Date: Sun, 16 Aug 2026 21:55:33 +0700 Subject: . --- nixos/modules/features/vpn-utils/default.nix | 33 ---------------------------- 1 file changed, 33 deletions(-) delete mode 100644 nixos/modules/features/vpn-utils/default.nix (limited to 'nixos/modules/features/vpn-utils') diff --git a/nixos/modules/features/vpn-utils/default.nix b/nixos/modules/features/vpn-utils/default.nix deleted file mode 100644 index ed5bb8d..0000000 --- a/nixos/modules/features/vpn-utils/default.nix +++ /dev/null @@ -1,33 +0,0 @@ -{ pkgs, ... }: - -{ - programs.throne = { - enable = true; - tunMode.enable = true; - }; - - programs.amnezia-vpn.enable = true; - - environment.systemPackages = with pkgs; [ - wireguard-tools - amneziawg-tools - amneziawg-go - ]; - - # Throne's sing-box core resolves its underlying DNS by running - # `resolvectl -i dns` and fails to parse the empty - # per-link output (enp42s0 has no per-link DNS; ours is global Mullvad - # in services.resolved). Push the same Mullvad servers per-link so the - # resolvectl parse succeeds and proxy hostnames can be looked up. - networking.networkmanager.dispatcherScripts = [ - { - type = "basic"; - source = pkgs.writeText "link-dns.sh" '' - #!/bin/sh - if [ "$1" = "enp42s0" ] && { [ "$2" = "up" ] || [ "$2" = "dhcp4-change" ]; }; then - ${pkgs.systemd}/bin/resolvectl dns enp42s0 194.242.2.2 194.242.2.4 || true - fi - ''; - } - ]; -} -- cgit v1.2.3