virtualisation/qemu-vm.nix: use lib.optionalString
This commit is contained in:
parent
04002e2b71
commit
046e374c99
|
@ -23,7 +23,7 @@ let
|
|||
|
||||
cfg = config.virtualisation;
|
||||
|
||||
qemuGraphics = if cfg.graphics then "" else "-nographic";
|
||||
qemuGraphics = lib.optionalString (!cfg.graphics) "-nographic";
|
||||
kernelConsole = if cfg.graphics then "" else "console=${qemuSerialDevice}";
|
||||
ttys = [ "tty1" "tty2" "tty3" "tty4" "tty5" "tty6" ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue