diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-11-15 10:21:44 +0059 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-11-15 10:21:44 +0059 |
commit | 0a0a6719a63d4518631bc42c8eaca39a8f9ed223 (patch) | |
tree | 11c4d583fe660e2fdaa4395d7aeafc047b017e47 /hosts/vidhar | |
parent | 48a11c46781d1f1cfcbb4b7364de6ac19c5eff9f (diff) | |
download | nixos-0a0a6719a63d4518631bc42c8eaca39a8f9ed223.tar nixos-0a0a6719a63d4518631bc42c8eaca39a8f9ed223.tar.gz nixos-0a0a6719a63d4518631bc42c8eaca39a8f9ed223.tar.bz2 nixos-0a0a6719a63d4518631bc42c8eaca39a8f9ed223.tar.xz nixos-0a0a6719a63d4518631bc42c8eaca39a8f9ed223.zip |
vidhar: ...
Diffstat (limited to 'hosts/vidhar')
-rw-r--r-- | hosts/vidhar/default.nix | 3 | ||||
-rw-r--r-- | hosts/vidhar/dsl.nix | 18 |
2 files changed, 14 insertions, 7 deletions
diff --git a/hosts/vidhar/default.nix b/hosts/vidhar/default.nix index 917bb522..ceec1f47 100644 --- a/hosts/vidhar/default.nix +++ b/hosts/vidhar/default.nix | |||
@@ -125,6 +125,9 @@ | |||
125 | subnet 10.141.0.0 netmask 255.255.255.0 { | 125 | subnet 10.141.0.0 netmask 255.255.255.0 { |
126 | range 10.141.0.128 10.141.0.254; | 126 | range 10.141.0.128 10.141.0.254; |
127 | option domain-name-servers 1.1.1.1, 1.0.0.1; | 127 | option domain-name-servers 1.1.1.1, 1.0.0.1; |
128 | option broadcast-address 10.141.0.255; | ||
129 | option routers 10.141.0.1; | ||
130 | option domain-name "asgard.yggdrasil"; | ||
128 | } | 131 | } |
129 | ''; | 132 | ''; |
130 | }; | 133 | }; |
diff --git a/hosts/vidhar/dsl.nix b/hosts/vidhar/dsl.nix index 0a28e50a..74008594 100644 --- a/hosts/vidhar/dsl.nix +++ b/hosts/vidhar/dsl.nix | |||
@@ -59,13 +59,17 @@ in { | |||
59 | ''; | 59 | ''; |
60 | mode = "0555"; | 60 | mode = "0555"; |
61 | }; | 61 | }; |
62 | # "ppp/ipv6-up" = { | 62 | "ppp/ipv6-up" = { |
63 | # text = '' | 63 | text = '' |
64 | # #!${pkgs.runtimeShell} | 64 | #!${pkgs.runtimeShell} |
65 | # ${pkgs.iproute}/bin/ip -6 route add default via "$5" dev "${pppInterface}" metric 512 | 65 | ${pkgs.procps}/bin/sysctl net/ipv6/conf/$1/use_tempaddr=1 |
66 | # ''; | 66 | ${pkgs.procps}/bin/sysctl net/ipv6/conf/$1/forwarding=0 |
67 | # mode = "0555"; | 67 | ${pkgs.procps}/bin/sysctl net/ipv6/conf/$1/autoconf=1 |
68 | # }; | 68 | ${pkgs.procps}/bin/sysctl net/ipv6/conf/$1/accept_ra=1 |
69 | ${pkgs.ndisc6}/bin/rdisc6 $1 | ||
70 | ''; | ||
71 | mode = "0555"; | ||
72 | }; | ||
69 | }; | 73 | }; |
70 | 74 | ||
71 | systemd.network.networks."dsl" = { | 75 | systemd.network.networks."dsl" = { |