Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- netboot = let
- cfg = { ... }:
- {
- imports = [ <nixpkgs/nixos/modules/installer/netboot/netboot-minimal.nix> ];
- environment.systemPackages = [ installer ];
- networking.firewall.allowedTCPPorts = [ 8080 ];
- };
- build = (import <nixpkgs/nixos> { configuration = cfg; }).config.system.build;
- in symlinkJoin {
- name="netboot";
- paths = [ build.netbootRamdisk build.kernel build.netbootIpxeScript ];
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement