# TFTP boot with shared image # Requests store path to install from master # Runs disko and nixos-install { pkgs, lib, config, ... }: { services.pixiecore = { enable = true; mode = "api"; dhcpNoBind = true; debug = true; statusPort = 6080; apiServer = "http://boot.${config.networking.domain}/pixiecore"; }; services.nginx = { enable = true; recommendedProxySettings = true; virtualHosts = { "boot.${config.networking.domain}" = { locations."/status".proxyPass = "http://localhost:${toString config.services.pixiecore.statusPort}"; locations."/pixiecore" = { root = "/srv/pixieboot"; }; }; }; }; hpc.hostFile = [ "boot.${config.networking.domain}" ]; }