Custom proxmox LXC image, stat: cannot read file system information for '/boot': No such file or directory

Can you try building your own image without nix run github:nix-community/nixos-generators -- --format proxmox-lxc?
Then in that order

  1. paste that exact same config into the container
  2. run nix-channel --update
  3. modify the config
  4. run nixos-rebuild switch

Some references for that here: NixOS Proxmox LXC Not rebuilding using wiki provided configuration - #8 by JimJ92120