From e27008c182adcc587ddf2253a30cb80dad333702 Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Sat, 18 Jun 2022 02:55:08 +0100 Subject: [PATCH] nixos/vms: Add -boot options --- nixos/modules/vms.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/vms.nix b/nixos/modules/vms.nix index 0046c46..598877a 100644 --- a/nixos/modules/vms.nix +++ b/nixos/modules/vms.nix @@ -118,6 +118,7 @@ let threads = mkOpt' ints.unsigned 1 "Number of threads per core."; }; memory = mkOpt' ints.unsigned 1024 "Amount of RAM (mebibytes)."; + boot = mkOpt' qemuOpts { menu = "on"; splash-time = 5000; } "Boot options."; vga = mkOpt' str "virtio" "VGA card type."; spice.enable = mkBoolOpt' true "Whether to enable SPICE."; networks = mkOption { @@ -149,6 +150,7 @@ let "cpu ${i.cpu}" "smp cores=${toString i.smp.cpus},threads=${toString i.smp.threads}" "m ${toString i.memory}" + "boot ${toString i.boot}" "nographic" "vga ${i.vga}" "chardev socket,id=monitor-qmp,path=/run/vms/${n}/monitor-qmp.sock,server=on,wait=off"