diff --git a/modules/hostel-wifi.nix b/modules/hostel-wifi.nix index d332716..88f0fd1 100644 --- a/modules/hostel-wifi.nix +++ b/modules/hostel-wifi.nix @@ -1,7 +1,6 @@ { config, pkgs, lib, ... }: let - xrayServer = (import ./private/xray-routes.nix).xrayServer; wifiIf = "wlp194s0"; in { @@ -87,7 +86,8 @@ in Type = "oneshot"; RemainAfterExit = true; ExecStart = pkgs.writeShellScript "killswitch-up" '' - ${pkgs.nftables}/bin/nft -f - <<'EOF' + XRAY_SERVER=$(cat ${config.sops.secrets."xray-endpoint".path}) + ${pkgs.nftables}/bin/nft -f - <