summaryrefslogtreecommitdiff
path: root/bragi.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-04-22 13:41:27 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-04-22 13:41:27 +0200
commit661ebb36d6b2acab2de4553178e8b474cc5a1b00 (patch)
tree189a532b5f8dedfd451c5b725c95624312cc5175 /bragi.nix
parent2ab67e4cff78ecf6c7f38d55838886033fe57520 (diff)
downloadnixos-661ebb36d6b2acab2de4553178e8b474cc5a1b00.tar
nixos-661ebb36d6b2acab2de4553178e8b474cc5a1b00.tar.gz
nixos-661ebb36d6b2acab2de4553178e8b474cc5a1b00.tar.bz2
nixos-661ebb36d6b2acab2de4553178e8b474cc5a1b00.tar.xz
nixos-661ebb36d6b2acab2de4553178e8b474cc5a1b00.zip
dhcp4
Diffstat (limited to 'bragi.nix')
-rw-r--r--bragi.nix29
1 files changed, 25 insertions, 4 deletions
diff --git a/bragi.nix b/bragi.nix
index 2e66e504..afa96e5b 100644
--- a/bragi.nix
+++ b/bragi.nix
@@ -67,6 +67,15 @@ in rec {
67 useSTARTTLS = true; 67 useSTARTTLS = true;
68 setSendmail = true; 68 setSendmail = true;
69 }; 69 };
70
71 dhcpcd = {
72 enable = true;
73 extraConfig = ''
74 interface wlp4s0
75 ipv6rs
76 ia_pd 1/::/64 eth/0/64
77 '';
78 };
70 }; 79 };
71 80
72 services.radvd = { 81 services.radvd = {
@@ -102,12 +111,24 @@ in rec {
102 ''; 111 '';
103 }; 112 };
104 113
105 services.dhcpcd = { 114 services.dhcpd4 = {
106 enable = true; 115 enable = true;
116 interfaces = [ "eth"
117 ];
118
119 machines = [
120 { ethernetAddress = "e0:cb:4e:f7:10:3d"; hostName = "vali"; ipAddress = "vali.bragisheimr.yggdrasil"; }
121 ];
122
107 extraConfig = '' 123 extraConfig = ''
108 interface wlp4s0 124 option subnet-mask 255.255.225.0
109 ipv6rs 125 option domain-name-servers 10.141.1.1, 8.8.8.8, 8.8.4.4;
110 ia_pd 1/::/64 eth/0/64 126 option domain-name "bragisheimr.yggdrasil";
127 option routers 10.141.4.1;
128
129 subnet 10.141.4.0 netmask 255.255.255.0 {
130 range 10.141.4.128 10.141.4.254;
131 }
111 ''; 132 '';
112 }; 133 };
113 134