1 { pkgs, lib, config, inputs, modulesPath, ... }@args:
3 pixiecore = config.services.pixiecore;
4 nixos = import ../minimal.nix
6 modules = [ (modulesPath + "/installer/netboot/netboot-minimal.nix") ];
8 build = nixos.config.system.build;
11 services.pixiecore = {
18 kernel = "${build.kernel}/bzImage";
19 initrd = "${build.netbootRamdisk}/initrd";
20 cmdLine = "init=${build.toplevel}/init loglevel=4";
23 networking.nftables.ruleset = ''
26 udp dport 67 counter accept comment "Pixiecore/DHCP"
27 udp dport 69 counter accept comment "Pixiecore/TFTP"
28 udp dport 4011 counter accept comment "Pixiecore/ProxyDHCP"
29 tcp dport ${toString pixiecore.port} counter accept comment "Pixiecore"
30 tcp dport ${toString pixiecore.statusPort} counter accept comment "Pixiecore/status"