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;