diff options
-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"; |