Nixos-shell: Difference between revisions
m style fixes |
m →Graphical session: replace nameless {{file}} template with <syntaxhighlight lang=nix> |
||
| Line 38: | Line 38: | ||
=== Graphical session === | === Graphical session === | ||
Following snippet will spawn a QEMU session with a graphical screen running GNOME, configured to auto login the user <code>nixos</code> | Following snippet will spawn a QEMU session with a graphical screen running GNOME, configured to auto login the user <code>nixos</code>: | ||
<syntaxhighlight lang=nix> | |||
{ ... }: { | { ... }: { | ||
virtualisation.memorySize = 8096; | virtualisation.memorySize = 8096; | ||
| Line 58: | Line 59: | ||
}; | }; | ||
}; | }; | ||
</ | </syntaxhighlight> | ||
If you want auto screen resize support and clipboard-sharing between host and guest to work, append the following lines to your guest config: | |||
<syntaxhighlight lang=nix> | |||
{ ... }: { | { ... }: { | ||
[...] | [...] | ||
| Line 97: | Line 100: | ||
}; | }; | ||
</ | </syntaxhighlight> | ||
=== Mounting host directories === | === Mounting host directories === | ||