mirror of
https://code.dumpstack.io/tools/appvm.git
synced 2024-11-27 18:41:31 +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.
|
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)
|
||||||
|
|
||||||
|
|
4
appvm.go
4
appvm.go
|
@ -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'/>
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue