nixos: Initial netbooting installer
All checks were successful
CI / Check, build and cache Nix flake (push) Successful in 34m36s
Installer / Build installer (push) Successful in 4m34s

This commit is contained in:
2024-06-24 00:08:55 +01:00
parent 9f2651e352
commit 84ca556c47
9 changed files with 390 additions and 16 deletions

View File

@@ -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}";
};
};
};
};

View File

@@ -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

View File

@@ -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;