From 353a3ac630e6b8c0eb5f04df5424f163258b3963 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 1 May 2024 04:55:17 +0200 Subject: [PATCH] Enable key-sharing and `virt-viewer` for all VMs --- lib/system.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/system.nix b/lib/system.nix index 4ac2b4c..8c413ed 100644 --- a/lib/system.nix +++ b/lib/system.nix @@ -20,6 +20,19 @@ ./config/custom-build-vm.nix ]; + virtualisation = + let + vmConfig = { + virtualisation = { + sharedHostKeys = true; + virt-viewer = true; + }; + }; + in { + vmVariant = vmConfig; + vmVariantWithBootLoader = vmConfig; + }; + # Networking networking.hostName = name; })