diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-01-18 08:07:27 -0600 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-01-18 08:07:27 -0600 |
| commit | ed2550a41c8429a1d2fe897deb878717c2ebc3d1 (patch) | |
| tree | 43a4ab6d02cb8dd0308a9fd8628bb04ee7f6ccec /modules/services | |
| parent | 9bd9efe8b26ba34e0cbba3e281749a4e262558e0 (diff) | |
initial wireguard configuration
Diffstat (limited to 'modules/services')
| -rw-r--r-- | modules/services/options.nix | 38 |
1 files changed, 0 insertions, 38 deletions
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 = { |
