Nixos-shell: Difference between revisions
→Graphical session: Enable auto screen resize |
m style fixes |
||
| Line 33: | Line 33: | ||
=== Reference local nixpkgs folder === | === Reference local nixpkgs folder === | ||
Using the <code>-I nixpkgs</code> parameter, you could choose to use a local ''nixpkgs'' repository, for example to test unfinished packages or modules:<syntaxhighlight lang=" | Using the <code>-I nixpkgs</code> parameter, you could choose to use a local ''nixpkgs'' repository, for example to test unfinished packages or modules:<syntaxhighlight lang="console"> | ||
nixos-shell -I nixpkgs=/home/myuser/projects/nixpkgs myvm.nix | $ nixos-shell -I nixpkgs=/home/myuser/projects/nixpkgs myvm.nix | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 112: | Line 112: | ||
}; | }; | ||
}; | }; | ||
</nowiki> | </nowiki>}} | ||
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. | ||