From 0787043ca5e6c889d6f6a474711e3666b11a8900 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sat, 23 Nov 2024 17:55:06 +0530 Subject: kay/network: switch isp --- os/kay/modules/network.nix | 36 +++++++----------------------------- 1 file changed, 7 insertions(+), 29 deletions(-) (limited to 'os/kay/modules') diff --git a/os/kay/modules/network.nix b/os/kay/modules/network.nix index 339f15b..8cb18bf 100644 --- a/os/kay/modules/network.nix +++ b/os/kay/modules/network.nix @@ -1,10 +1,9 @@ { config, ... }: let - inetVlan = 722; - voipVlan = 1849; + inetVlan = 1003; wanInterface = "enp3s0"; - nameServer = "1.0.0.1"; + nameServer = [ "1.0.0.1" "1.1.1.1" ]; in { imports = [ @@ -18,37 +17,16 @@ in "ppp/username" = {}; }; - networking = let - voipVlanIface = "voip"; - in { - vlans = { - wan = { - id = inetVlan; - interface = wanInterface; - }; - ${voipVlanIface} = { - id = voipVlan; - interface = wanInterface; - }; - }; - - interfaces = { - ${voipVlanIface}.useDHCP = true; - ${wanInterface}.macAddress = "c4:54:44:d5:17:68"; - }; - - dhcpcd.extraConfig = '' - interface ${voipVlanIface} - ipv4only - nogateway - ''; + networking.vlans.wan = { + id = inetVlan; + interface = wanInterface; }; services = { dnsmasq = { enable = true; settings = { - server = [ nameServer ]; + server = nameServer; bind-interfaces = true; }; }; @@ -71,7 +49,7 @@ in lcp-echo-failure 5 ''; - peers.bsnl = { + peers.keralavision = { enable = true; autostart = true; configFile = config.sops.secrets."ppp/username".path; -- cgit v1.2.3