Skip to content

Instantly share code, notes, and snippets.

@betaboon
Created May 12, 2020 10:33
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 betaboon/4a69dab5e7db35bb96da532fad603768 to your computer and use it in GitHub Desktop.
Save betaboon/4a69dab5e7db35bb96da532fad603768 to your computer and use it in GitHub Desktop.
{ pkgs, lib, config, ... }:
{
services.pixiecore = let
nixos = import <nixpkgs/nixos> {
configuration = { config, pkgs, lib, ... }: with lib; {
imports = [
<nixpkgs/nixos/modules/profiles/minimal.nix>
<nixpkgs/nixos/modules/profiles/all-hardware.nix>
<nixpkgs/nixos/modules/installer/netboot/netboot.nix>
];
# boot.kernelParams = [ "console=ttyS0" "panic=1" "boot.panic_on_fail" ];
boot.kernelParams = [ "console=ttyS0" ];
};
};
build = nixos.config.system.build;
in {
enable = true;
debug = true;
openFirewall = true;
dhcpNoBind = true;
kernel = "${build.kernel}/bzImage";
initrd = "${toString build.netbootRamdisk}/initrd";
cmdLine = "init=${build.toplevel}/init ${lib.concatStringsSep " " nixos.config.boot.kernelParams}";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment