summaryrefslogtreecommitdiff
path: root/bragi.nix
diff options
context:
space:
mode:
Diffstat (limited to 'bragi.nix')
-rw-r--r--bragi.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/bragi.nix b/bragi.nix
index d97e0f35..f76aef61 100644
--- a/bragi.nix
+++ b/bragi.nix
@@ -97,6 +97,14 @@ in rec {
97 ''; 97 '';
98 }; 98 };
99 99
100 systemd.services.radvd = {
101 path = with pkgs; [procps];
102 preStart = ''
103 sysctl net.ipv6.conf.eth.forwarding=1
104 sysctl net.ipv6.conf.wlp4s0.forwarding=1
105 '';
106 };
107
100 services.dhcpd4 = { 108 services.dhcpd4 = {
101 enable = true; 109 enable = true;
102 interfaces = [ "eth" 110 interfaces = [ "eth"
@@ -110,7 +118,7 @@ in rec {
110 option subnet-mask 255.255.225.0; 118 option subnet-mask 255.255.225.0;
111 option domain-name-servers 10.141.1.1, 8.8.8.8, 8.8.4.4; 119 option domain-name-servers 10.141.1.1, 8.8.8.8, 8.8.4.4;
112 option domain-name "bragisheimr.yggdrasil"; 120 option domain-name "bragisheimr.yggdrasil";
113 option domain-search "asgard.yggdrasil" "yggdrasil"; 121 option domain-search "asgard.yggdrasil", "yggdrasil";
114 option routers 10.141.4.1; 122 option routers 10.141.4.1;
115 123
116 subnet 10.141.4.0 netmask 255.255.255.0 { 124 subnet 10.141.4.0 netmask 255.255.255.0 {