Advertisement
Guest User

Untitled

a guest
Dec 15th, 2016
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. netboot = let
  2. cfg = { ... }:
  3. {
  4. imports = [ <nixpkgs/nixos/modules/installer/netboot/netboot-minimal.nix> ];
  5. environment.systemPackages = [ installer ];
  6. networking.firewall.allowedTCPPorts = [ 8080 ];
  7. };
  8. build = (import <nixpkgs/nixos> { configuration = cfg; }).config.system.build;
  9. in symlinkJoin {
  10. name="netboot";
  11. paths = [ build.netbootRamdisk build.kernel build.netbootIpxeScript ];
  12. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement