From 046e374c9958969462919d192872606bb9f0ed4a Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sat, 5 May 2018 00:11:10 +0200 Subject: [PATCH] virtualisation/qemu-vm.nix: use lib.optionalString --- nixos/modules/virtualisation/qemu-vm.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/virtualisation/qemu-vm.nix b/nixos/modules/virtualisation/qemu-vm.nix index 66ff43c8547d..6acaf63c26a8 100644 --- a/nixos/modules/virtualisation/qemu-vm.nix +++ b/nixos/modules/virtualisation/qemu-vm.nix @@ -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" ];