summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-11-15 09:44:32 +0059
committerGregor Kleen <gkleen@yggdrasil.li>2021-11-15 09:44:32 +0059
commit7596211b892d907195887884752813c5ad0fc8f8 (patch)
tree7efbf322e4afc99d67b62693ae45e74d7be92d8e /hosts
parent78280e2e5b5469eca7be3909f15d5cf2abe21961 (diff)
downloadnixos-7596211b892d907195887884752813c5ad0fc8f8.tar
nixos-7596211b892d907195887884752813c5ad0fc8f8.tar.gz
nixos-7596211b892d907195887884752813c5ad0fc8f8.tar.bz2
nixos-7596211b892d907195887884752813c5ad0fc8f8.tar.xz
nixos-7596211b892d907195887884752813c5ad0fc8f8.zip
vidhar: ...
Diffstat (limited to 'hosts')
-rw-r--r--hosts/vidhar/default.nix6
-rw-r--r--hosts/vidhar/dsl.nix12
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}