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. 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) ![appvm screenshot](screenshots/2018-07-05.png)

View file

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

View file

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