The internet has much to say on the topic of Nix and virtualization, too much for me to find a quick recipe for my simple use case: I am running NixOS and want to explore the process of installing the nix package manager as a non-nix-user.
So I would like to spin up a VM running a fairly minimal installation of some Linux distribution, something like alpine or arch with working network connection and a non-root user account.
Is there a quick way of achieving this?
Does virtualization need to be enabled in the system configuration.nix
, or can this all be done (perhaps in home-manager) as an unprivileged user?