summaryrefslogtreecommitdiff
path: root/ymir.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-04-17 20:38:43 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-04-17 20:38:43 +0200
commitaaede67469105d97e8bc59173503abfb797727a5 (patch)
treebc8d02c2a9382110f25b33329af40a41f39773fa /ymir.nix
parenta38536ecc1003dc1305351d047af0afcedf2ced7 (diff)
downloadnixos-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.nix15
1 files changed, 14 insertions, 1 deletions
diff --git a/ymir.nix b/ymir.nix
index 588dfafc..17849e82 100644
--- a/ymir.nix
+++ b/ymir.nix
@@ -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";