diff options
-rw-r--r-- | hosts/vidhar/default.nix | 6 | ||||
-rw-r--r-- | hosts/vidhar/dsl.nix | 12 |
2 files changed, 15 insertions, 3 deletions
diff --git a/hosts/vidhar/default.nix b/hosts/vidhar/default.nix index ad8f1a31..e8aafeb9 100644 --- a/hosts/vidhar/default.nix +++ b/hosts/vidhar/default.nix | |||
@@ -99,7 +99,7 @@ | |||
99 | extraConfig = '' | 99 | extraConfig = '' |
100 | subnet 10.141.0.0 netmask 255.255.255.0 { | 100 | subnet 10.141.0.0 netmask 255.255.255.0 { |
101 | range 10.141.0.128 10.141.0.254; | 101 | range 10.141.0.128 10.141.0.254; |
102 | option domain-name-servers 1.1.1.1, 8.8.8.8; | 102 | option domain-name-servers 1.1.1.1, 1.0.0.1; |
103 | } | 103 | } |
104 | ''; | 104 | ''; |
105 | }; | 105 | }; |
@@ -112,8 +112,8 @@ | |||
112 | } | 112 | } |
113 | { name = "eno1"; | 113 | { name = "eno1"; |
114 | advertise = true; | 114 | advertise = true; |
115 | prefix = [{ prefix = "::/64"; }]; | 115 | prefix = [{}]; |
116 | route = [{ prefix = "::/0"; }]; | 116 | route = [{}]; |
117 | } | 117 | } |
118 | ]; | 118 | ]; |
119 | }; | 119 | }; |
diff --git a/hosts/vidhar/dsl.nix b/hosts/vidhar/dsl.nix index bdce55a6..695c99dd 100644 --- a/hosts/vidhar/dsl.nix +++ b/hosts/vidhar/dsl.nix | |||
@@ -60,5 +60,17 @@ in { | |||
60 | mode = "0555"; | 60 | mode = "0555"; |
61 | }; | 61 | }; |
62 | }; | 62 | }; |
63 | |||
64 | systemd.network.networks."dsl" = { | ||
65 | matchConfig = { | ||
66 | Name = "dsl"; | ||
67 | }; | ||
68 | networkConfig = { | ||
69 | LinkLocalAddressing = "no"; | ||
70 | DNS = [ | ||
71 | "1.1.1.1" "1.0.0.1" | ||
72 | ]; | ||
73 | }; | ||
74 | }; | ||
63 | }; | 75 | }; |
64 | } | 76 | } |