From ed2550a41c8429a1d2fe897deb878717c2ebc3d1 Mon Sep 17 00:00:00 2001 From: Collin Williams <96917990+bluedragon1221@users.noreply.github.com> Date: Sun, 18 Jan 2026 08:07:27 -0600 Subject: initial wireguard configuration --- modules/services/options.nix | 38 -------------------------------------- 1 file changed, 38 deletions(-) (limited to 'modules/services/options.nix') diff --git a/modules/services/options.nix b/modules/services/options.nix index cae9e72..e87ecb3 100644 --- a/modules/services/options.nix +++ b/modules/services/options.nix @@ -32,44 +32,6 @@ in { }; }; tailscale.enable = mkEnableOption "tailscale"; - wireguard = let - spokeOpts = { - ip = mkOption { - type = ip_addr; - }; - key = mkOption { - type = lib.types.str; - }; - }; - - hubOpts = - spokeOpts - // { - domain = mkOption { - type = lib.types.str; - }; - port = mkOption { - type = lib.types.port; - }; - }; - in { - # based on https://www.procustodibus.com/blog/2020/11/wireguard-hub-and-spoke-config - enable = mkEnableOption "wireguard"; - - peersConfig = { - hub = mkOption { - type = lib.types.attrsOf (lib.types.submodule {options = hubOpts;}); - }; - - spokes = mkOption { - type = lib.types.attrsOf (lib.types.submodule {options = spokeOpts;}); - }; - }; - - localPeer = mkOption { - type = lib.types.oneOf [hubOpts spokeOpts]; - }; - }; sshd.enable = mkEnableOption "OpenSSH server"; }; audio = { -- cgit v1.3.1