sudo nix-channel --update && sudo nixos-rebuild switch
Open your terminal and navigate to the directory where you want to install MedusaJs.
Clone the MedusaJs repository by running the following command:
git clone https://github.com/medusajs/medusa.git
cd medusa
nix-env -iA nixpkgs.medusajs
medusa --version
This command should output the version number of the installed package.
Congratulations! You have successfully installed MedusaJs on your NixOS system. You can now proceed to use it in your projects.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!