diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-17 20:38:43 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-17 20:38:43 +0200 |
commit | aaede67469105d97e8bc59173503abfb797727a5 (patch) | |
tree | bc8d02c2a9382110f25b33329af40a41f39773fa /ymir.nix | |
parent | a38536ecc1003dc1305351d047af0afcedf2ced7 (diff) | |
download | nixos-aaede67469105d97e8bc59173503abfb797727a5.tar nixos-aaede67469105d97e8bc59173503abfb797727a5.tar.gz nixos-aaede67469105d97e8bc59173503abfb797727a5.tar.bz2 nixos-aaede67469105d97e8bc59173503abfb797727a5.tar.xz nixos-aaede67469105d97e8bc59173503abfb797727a5.zip |
dhcp for yggdrasil on ymir
Diffstat (limited to 'ymir.nix')
-rw-r--r-- | ymir.nix | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -310,7 +310,7 @@ in rec { | |||
310 | connect = false; | 310 | connect = false; |
311 | useDNS = false; | 311 | useDNS = false; |
312 | interfaceConfig = { | 312 | interfaceConfig = { |
313 | useDHCP = true; | 313 | ipv4.addresses = [ { address = "10.141.5.1"; prefixLength = 16; } ]; |
314 | }; | 314 | }; |
315 | }; | 315 | }; |
316 | 316 | ||
@@ -924,6 +924,19 @@ in rec { | |||
924 | ''; | 924 | ''; |
925 | }; | 925 | }; |
926 | 926 | ||
927 | services.dhcpd4 = { | ||
928 | enable = true; | ||
929 | interfaces = [ "yggdrasil" ]; | ||
930 | machines = [ | ||
931 | { hostname = "hel"; ethernetAddress = "ee:10:15:9a:cc:1f"; ipAddress = "hel.asgard.yggdrasil"; } | ||
932 | ]; | ||
933 | extraConfig = '' | ||
934 | subnet 10.141.0.0 netmask 255.255.0.0 { | ||
935 | range 10.141.255.0 10.141.254.254 | ||
936 | } | ||
937 | ''; | ||
938 | }; | ||
939 | |||
927 | services.infinoted = { | 940 | services.infinoted = { |
928 | enable = true; | 941 | enable = true; |
929 | keyFile = "/var/lib/acme/yggdrasil.li/key.pem"; | 942 | keyFile = "/var/lib/acme/yggdrasil.li/key.pem"; |