summaryrefslogtreecommitdiff
path: root/os/kay/modules/network.nix
diff options
context:
space:
mode:
Diffstat (limited to 'os/kay/modules/network.nix')
-rw-r--r--os/kay/modules/network.nix37
1 files changed, 9 insertions, 28 deletions
diff --git a/os/kay/modules/network.nix b/os/kay/modules/network.nix
index 339f15b..04b270d 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 = [ "2606:4700:4700::1111" "2606:4700:4700::1001" "1.1.1.1" "1.0.0.1" ];
in
{
imports = [
@@ -18,37 +17,19 @@ in
"ppp/username" = {};
};
- networking = let
- voipVlanIface = "voip";
- in {
- vlans = {
- wan = {
- id = inetVlan;
- interface = wanInterface;
- };
- ${voipVlanIface} = {
- id = voipVlan;
- interface = wanInterface;
- };
+ networking = {
+ tempAddresses = "disabled";
+ vlans.wan = {
+ id = inetVlan;
+ interface = wanInterface;
};
-
- interfaces = {
- ${voipVlanIface}.useDHCP = true;
- ${wanInterface}.macAddress = "c4:54:44:d5:17:68";
- };
-
- dhcpcd.extraConfig = ''
- interface ${voipVlanIface}
- ipv4only
- nogateway
- '';
};
services = {
dnsmasq = {
enable = true;
settings = {
- server = [ nameServer ];
+ server = nameServer;
bind-interfaces = true;
};
};
@@ -71,7 +52,7 @@ in
lcp-echo-failure 5
'';
- peers.bsnl = {
+ peers.keralavision = {
enable = true;
autostart = true;
configFile = config.sops.secrets."ppp/username".path;