nixos: Initial netbooting installer
This commit is contained in:
@@ -148,9 +148,11 @@ in
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nginx.enable = true;
|
||||
};
|
||||
|
||||
networking.domain = "h.${pubDomain}";
|
||||
networking = { inherit domain; };
|
||||
|
||||
systemd.services =
|
||||
let
|
||||
@@ -399,6 +401,11 @@ in
|
||||
}
|
||||
'';
|
||||
};
|
||||
netboot.server = {
|
||||
enable = true;
|
||||
ip = vips.lo.v4;
|
||||
host = "boot.${domain}";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@@ -172,6 +172,7 @@ in
|
||||
}}
|
||||
${elemAt routers 0} IN AAAA ${net.cidr.host 1 prefixes.hi.v6}
|
||||
${elemAt routers 1} IN AAAA ${net.cidr.host 2 prefixes.hi.v6}
|
||||
boot IN CNAME router-hi.${config.networking.domain}.
|
||||
|
||||
@ IN NS ns1
|
||||
@ IN NS ns2
|
||||
|
@@ -1,4 +1,4 @@
|
||||
index: { lib, pkgs, assignments, ... }:
|
||||
index: { lib, pkgs, config, assignments, ... }:
|
||||
let
|
||||
inherit (lib) mkForce;
|
||||
inherit (lib.my) net;
|
||||
@@ -63,6 +63,7 @@ in
|
||||
always-send = true;
|
||||
}
|
||||
];
|
||||
client-classes = config.my.netboot.server.keaClientClasses;
|
||||
subnet4 = [
|
||||
{
|
||||
id = 1;
|
||||
|
Reference in New Issue
Block a user