diff options
| author | Mike Vink <mike@pionative.com> | 2025-02-02 14:04:46 +0100 |
|---|---|---|
| committer | Mike Vink <mike@pionative.com> | 2025-02-02 14:20:13 +0100 |
| commit | 02d42f807c0e2d7bf16f1fb7cd10559243ed86d3 (patch) | |
| tree | 6686b62839e74e59d2598f444c95e73274a6693b /profiles/netboot | |
| parent | 6eff3740519b0f7905e9e0ec21ef4323abc31af7 (diff) | |
fix netboot
Diffstat (limited to 'profiles/netboot')
| -rw-r--r-- | profiles/netboot/system.nix | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/profiles/netboot/system.nix b/profiles/netboot/system.nix index b0e7945..882309d 100644 --- a/profiles/netboot/system.nix +++ b/profiles/netboot/system.nix @@ -5,25 +5,16 @@ sys: { pkgs, lib, ... }: let name = "run-pixiecore"; text = '' sudo ${pkgs.pixiecore}/bin/pixiecore \ - boot kernel/bzImage initrd/initrd \ - --cmdline "init=init/init loglevel=4" \ + boot ${build.kernel}/bzImage ${build.netbootRamdisk}/initrd \ + --cmdline "init=${build.toplevel}/init loglevel=4" \ --debug --dhcp-no-bind \ --port 64172 --status-port 64172 "$@" ''; }; - build-pixie = pkgs.writeShellApplication { - name = "build-pixie"; - text = '' - nix build /nix-config\#nixosConfigurations."$1".config.system.build.kernel --impure -o kernel - nix build /nix-config\#nixosConfigurations."$1".config.system.build.toplevel --impure -o init - nix build /nix-config\#nixosConfigurations."$1".config.system.build.netbootRamdisk --impure -o initrd - ''; - }; in { networking.firewall.allowedUDPPorts = [ 67 69 4011 ]; networking.firewall.allowedTCPPorts = [ 64172 ]; environment.systemPackages = [ run-pixiecore - build-pixie ]; } |
