Enable spice-vdagent

This commit is contained in:
Mikhail Klementev 2018-07-12 17:43:42 +00:00
parent b124788960
commit b99319a2fe
3 changed files with 12 additions and 1 deletions

View File

@ -4,7 +4,7 @@ Simple application VM's based on Nix package manager.
Uses one **read-only** /nix directory for all appvms. So creating a new appvm (but not first) is just about one minute.
Currently optimized for full screen usage (but remote-viewer has ability to resize window dynamically without change resolution) without guest additions.
Currently optimized for full screen usage (but remote-viewer has ability to resize window dynamically without change resolution).
![appvm screenshot](screenshots/2018-07-05.png)

View File

@ -49,6 +49,10 @@ var xmlTmpl = `
<listen type='address'/>
<image compression='off'/>
</graphics>
<!-- Guest additionals support -->
<channel type='spicevmc'>
<target type='virtio' name='com.redhat.spice.0'/>
</channel>
<!-- Fake (because -snapshot) writeback image -->
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2' cache='writeback' error_policy='report'/>

View File

@ -18,6 +18,8 @@
windowManager.default = "xmonad";
};
services.spice-vdagentd.enable = true;
users.extraUsers.user = {
isNormalUser = true;
extraGroups = [ "audio" ];
@ -29,7 +31,12 @@ import XMonad
main = xmonad defaultConfig
{ workspaces = [ "" ]
, borderWidth = 0
, startupHook = startup
}
startup :: X ()
startup = do
spawn "spice-vdagent"
'';
systemd.services.home-user-build-xmonad = {