From b99319a2fed812cc18dd73c2993237970413a150 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Thu, 12 Jul 2018 17:43:42 +0000 Subject: [PATCH] Enable spice-vdagent --- README.md | 2 +- appvm.go | 4 ++++ nix/base.nix | 7 +++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1192b2c..820da1a 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/appvm.go b/appvm.go index 2e7cbf1..ee90c52 100644 --- a/appvm.go +++ b/appvm.go @@ -49,6 +49,10 @@ var xmlTmpl = ` + + + + diff --git a/nix/base.nix b/nix/base.nix index f86a5e1..a770e60 100644 --- a/nix/base.nix +++ b/nix/base.nix @@ -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 = {