Nixos-shell: Difference between revisions

imported>Onny
Add Flakes example
imported>Onny
No edit summary
Line 48: Line 48:
Mounting is done through the network filesystem protocol 9p. Currently [https://github.com/Mic92/nixos-shell/issues/71 it's not possible] to mount the target directory with a specific UID/GID, so you'll have to change the permissions on the host directory according to your needs.
Mounting is done through the network filesystem protocol 9p. Currently [https://github.com/Mic92/nixos-shell/issues/71 it's not possible] to mount the target directory with a specific UID/GID, so you'll have to change the permissions on the host directory according to your needs.


=== Using inside Flake ===
=== Inside Nix Flake ===


Using following [[Flakes]] example, you can start a virtual machine using nixos-shell by just typing <code>nix run</code>
Using following [[Flakes]] example, you can start a virtual machine using nixos-shell by just typing <code>nix run</code>