Nixos-shell: Difference between revisions

DHCP (talk | contribs)
m style fixes
DHCP (talk | contribs)
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>.{{file|3=<nowiki>
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:
   };
   };
};
};
</nowiki>|name=|lang=nix}}If you want auto screen resize support and clipboard-sharing between host and guest to work, append the following lines to your guest config.{{file|3=<nowiki>
</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:


};
};
</nowiki>|name=|lang=nix}}
</syntaxhighlight>


=== Mounting host directories ===
=== Mounting host directories ===