From 2d4bdd0cfdc27ec8db3dee1b0945f8a7b85ebbc7 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Sat, 26 Apr 2025 17:09:32 +0100 Subject: [PATCH] refactor: update network interface types and configuration --- modules/core/network.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/core/network.nix b/modules/core/network.nix index 28966e0..acd9f3e 100644 --- a/modules/core/network.nix +++ b/modules/core/network.nix @@ -15,8 +15,8 @@ in }; type = mkOption { - type = types.enum [ "lan" "wan" "tailscale" ]; - description = "The type of interface (lan, wan, or vpn/tailscale)."; + type = types.enum [ "lan" "wan" "vpn" ]; + description = "The type of interface (lan, wan, or vpn)."; }; net = mkOption { @@ -50,10 +50,10 @@ in config = { # Create lists of interfaces by type for easy access elsewhere - pepe.core.network.interfacesByType = { + cfg.interfacesByType = { lan = lib.filterAttrs (_: iface: iface.type == "lan") cfg.interfaces; wan = lib.filterAttrs (_: iface: iface.type == "wan") cfg.interfaces; - vpn = lib.filterAttrs (_: iface: iface.type == "tailscale") cfg.interfaces; + vpn = lib.filterAttrs (_: iface: iface.type == "vpn") cfg.interfaces; }; }; }