From d5023ed7ad49d176ca5e49283b798350024653bf Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 9 Apr 2024 23:10:19 +0200 Subject: [PATCH] Enable settings for both vms and vms with bootloaders --- lib/system.nix | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/lib/system.nix b/lib/system.nix index 05bdc5e..09bcf88 100644 --- a/lib/system.nix +++ b/lib/system.nix @@ -19,18 +19,24 @@ machineConfig ]; - virtualisation.vmVariant = { - virtualisation.qemu.options = [ - "-display sdl" - ]; + virtualisation = + let + config = { + virtualisation.qemu.options = [ + "-display sdl" + ]; - virtualisation.sharedDirectories = { - keys = { - source = "/etc/ssh"; - target = "/etc/ssh"; + virtualisation.sharedDirectories = { + keys = { + source = "/etc/ssh"; + target = "/etc/ssh"; + }; + }; }; + in { + vmVariant = config; + vmVariantWithBootLoader = config; }; - }; # Networking networking.hostName = name;