From aaede67469105d97e8bc59173503abfb797727a5 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 17 Apr 2018 20:38:43 +0200 Subject: dhcp for yggdrasil on ymir --- ymir.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/ymir.nix b/ymir.nix index 588dfafc..17849e82 100644 --- a/ymir.nix +++ b/ymir.nix @@ -310,7 +310,7 @@ in rec { connect = false; useDNS = false; interfaceConfig = { - useDHCP = true; + ipv4.addresses = [ { address = "10.141.5.1"; prefixLength = 16; } ]; }; }; @@ -924,6 +924,19 @@ in rec { ''; }; + services.dhcpd4 = { + enable = true; + interfaces = [ "yggdrasil" ]; + machines = [ + { hostname = "hel"; ethernetAddress = "ee:10:15:9a:cc:1f"; ipAddress = "hel.asgard.yggdrasil"; } + ]; + extraConfig = '' + subnet 10.141.0.0 netmask 255.255.0.0 { + range 10.141.255.0 10.141.254.254 + } + ''; + }; + services.infinoted = { enable = true; keyFile = "/var/lib/acme/yggdrasil.li/key.pem"; -- cgit v1.2.3