Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Created January 25, 2019 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cleverca22/a075be9c6dcbae5b4b6d0d8c0fad41f2 to your computer and use it in GitHub Desktop.
Save cleverca22/a075be9c6dcbae5b4b6d0d8c0fad41f2 to your computer and use it in GitHub Desktop.
{ pkgs ? import <nixpkgs>, system ? "x86_64-linux", ... }:
let
module = { pkgs, config, lib, ... }: {
services.xserver.enable = true;
};
build = (import (pkgs.path + "/nixos/lib/eval-config.nix") {
# TODO: Make system as a parameter
inherit system;
modules = [
(pkgs.path + "/nixos/modules/installer/netboot/netboot-minimal.nix")
module
];
}).config.system.build;
in
pkgs.symlinkJoin {
name = "netboot";
paths = with build; [ netbootRamdisk kernel netbootIpxeScript ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment