mirror of
https://code.dumpstack.io/tools/appvm.git
synced 2024-11-26 14:13:01 +00:00
Enable spice-vdagent
This commit is contained in:
parent
b124788960
commit
b99319a2fe
@ -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)
|
||||
|
||||
|
4
appvm.go
4
appvm.go
@ -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'/>
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user