Nixpkgs or NixOS studio

Hey,
I found using Nix package manager is very satisfying, because it’s easily reproducible on my different machines. Also i found asking a simple package, like zig, with apt-get is not straight forward, but you can run nix-shell -p zig and it’s there.

I install nixpkgs in Ubuntu simply by running

sh <(curl -L https://nixos.org/nix/install) --daemon

It works, but after restarting the studio I have to run it again, which is a pain! How can I at least keep the /nix directory? It’s my minimum question, however, the request, that will satisfy me, would be, how can I have a NixOS studio? Thanks.

First, I noticed zig is not in apt-get because the source link is not in /etc/apt/sources.list.d/!
Second, happily I have my whole dev machine, including my nvim config and LSPs, etc in a docker image(.tar.gz), so by using pytorch-lightning/dockers/README.md at master · Lightning-AI/pytorch-lightning · GitHub, I could install docker and use that image to have a full access to my configs, including NixOS packages. Thanks.