-
-
Save betaboon/4a69dab5e7db35bb96da532fad603768 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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