mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-05 02:23:07 +03:00
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 New Issue
Block a user