I’m obviously missing something here but I’m trying to build the PXE images:
[root@kube2:~]# nix-build -A netboot nixos/release.nix
error: getting status of ‘/root/nixos/release.nix’: No such file or directory
Where do I get nixos/release.nix?
Thanks
tfc
2
the path nixos/release.nix
exists within the nixpkgs repo. I suggest the following commands:
$ git clone https://github.com/nixos/nixpkgs
$ cd nixpkgs
$ nix-build -A netboot nixos/release.nix
And you do not need to do it as root user.
1 Like
Thank you. That got me further along, but I just received this error and I’m not quite sure what to do about it.
error: a ‘aarch64-linux’ is required to build ‘/nix/store/6g35x9g752pnk4yip2y3p1sszwlrcvnb-append-initrd-secrets.drv’, but I am a ‘x86_64-linux’
I’m not trying to build an aarch type. I’m just trying to PXE x86_64 hosts.