One may opt for the conventional approach of using the pages-gem or the containerized approach in which a Docker container is used to provide an environment with most dependencies pre-installed.
Installing NixOS with existing Windows with UEFI boot, root on tmpfs, home on tmpfs, everything else on encrypted ZFS datasets, and a flake-based config Obviously this takes a lot of RAM. 12GiB for / ...