summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-11-15 10:55:53 +0059
committerGregor Kleen <gkleen@yggdrasil.li>2021-11-15 10:55:53 +0059
commitc815bd89bfa7fed01a477cf3ce5d49d733315d30 (patch)
tree48b4a70591e715b18f5599f8a837e3732abf4a6d
parente9777f91db22d03cf7d3bca5d3d96f31f89053a7 (diff)
downloadnixos-c815bd89bfa7fed01a477cf3ce5d49d733315d30.tar
nixos-c815bd89bfa7fed01a477cf3ce5d49d733315d30.tar.gz
nixos-c815bd89bfa7fed01a477cf3ce5d49d733315d30.tar.bz2
nixos-c815bd89bfa7fed01a477cf3ce5d49d733315d30.tar.xz
nixos-c815bd89bfa7fed01a477cf3ce5d49d733315d30.zip
vidhar: ...
-rw-r--r--hosts/vidhar/default.nix14
-rw-r--r--hosts/vidhar/dsl.nix3
2 files changed, 16 insertions, 1 deletions
diff --git a/hosts/vidhar/default.nix b/hosts/vidhar/default.nix
index 18eb0629..25040f7d 100644
--- a/hosts/vidhar/default.nix
+++ b/hosts/vidhar/default.nix
@@ -158,6 +158,20 @@
158 "eno2".networkConfig.LinkLocalAddressing = "no"; 158 "eno2".networkConfig.LinkLocalAddressing = "no";
159 "telekom".networkConfig.LinkLocalAddressing = "no"; 159 "telekom".networkConfig.LinkLocalAddressing = "no";
160 }; 160 };
161 services.dhcpd6 = {
162 enable = true;
163 configFile = pkgs.writeText "dhcpd6.conf" ''
164 interface dsl {
165 send ia-pd 0;
166 }
167
168 id-assoc pd 0 {
169 prefix-interface eno1 {
170 sla-id 0;
171 }
172 }
173 '';
174 };
161 175
162 services.timesyncd.enable = false; 176 services.timesyncd.enable = false;
163 services.chrony = { 177 services.chrony = {
diff --git a/hosts/vidhar/dsl.nix b/hosts/vidhar/dsl.nix
index 74008594..202e3c18 100644
--- a/hosts/vidhar/dsl.nix
+++ b/hosts/vidhar/dsl.nix
@@ -63,7 +63,8 @@ in {
63 text = '' 63 text = ''
64 #!${pkgs.runtimeShell} 64 #!${pkgs.runtimeShell}
65 ${pkgs.procps}/bin/sysctl net/ipv6/conf/$1/use_tempaddr=1 65 ${pkgs.procps}/bin/sysctl net/ipv6/conf/$1/use_tempaddr=1
66 ${pkgs.procps}/bin/sysctl net/ipv6/conf/$1/forwarding=0 66 # ${pkgs.procps}/bin/sysctl net/ipv6/conf/$1/forwarding=0
67 ${pkgs.procps}/bin/sysctl net/ipv6/conf/$1/forwarding=1
67 ${pkgs.procps}/bin/sysctl net/ipv6/conf/$1/autoconf=1 68 ${pkgs.procps}/bin/sysctl net/ipv6/conf/$1/autoconf=1
68 ${pkgs.procps}/bin/sysctl net/ipv6/conf/$1/accept_ra=1 69 ${pkgs.procps}/bin/sysctl net/ipv6/conf/$1/accept_ra=1
69 ${pkgs.ndisc6}/bin/rdisc6 $1 70 ${pkgs.ndisc6}/bin/rdisc6 $1