Skip to content

Netboot with NixOS #136

@gianarb

Description

@gianarb

Hello! Awesome project. Simple and it does what it should I love it!

TLDR: I am not sure about how to glue all of this together in a good way

I am writing this question because I think you are faimiliar with NixOS.
I am following this guide to netboot a NixOS based operating system

https://nixos.wiki/wiki/Netboot

It generates a ipxe script file that contains the init cmdline

$ cat result/netboot.ipxe
#!ipxe
# Use the cmdline variable to allow the user to specify custom kernel params
# when chainloading this script from other iPXE scripts like netboot.xyz
kernel bzImage init=/nix/store/wc9fvfyhv649b4kxry5747rx5rw88v68-nixos-system-nixos-22.05.20220902.67e4507/init initrd=initrd loglevel=4 ${cmdline}
initrd initrd
boot

I am trying to figure out a way to teach pixiecore about this file or at least about the init location, ideally via services.pixiecore.cmdLine

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions