diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-11-23 17:55:06 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-11-23 18:58:13 +0530 |
commit | 0787043ca5e6c889d6f6a474711e3666b11a8900 (patch) | |
tree | 8ff65ffb09e1e034806de46d853e4e7a3bbf1688 /os/kay/modules | |
parent | f004829e42cb395693707a9b720fa9b61097a505 (diff) |
kay/network: switch isp
Diffstat (limited to 'os/kay/modules')
-rw-r--r-- | os/kay/modules/network.nix | 36 |
1 files changed, 7 insertions, 29 deletions
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; |