about summary refs log tree commit diff
path: root/pkgs/applications/virtualization/singularity
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2018-05-05 13:51:04 +0200
committerTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>2018-05-07 19:23:47 +0300
commitd4468bedb52bf03ff125d721634f83604bddd589 (patch)
treee613fc9ecff3f6375d50e5cf51c3af2dc79510f4 /pkgs/applications/virtualization/singularity
parent70c57fe3638555d3ae1366e26be445d7f67a81e7 (diff)
downloadnixlib-d4468bedb52bf03ff125d721634f83604bddd589.tar
nixlib-d4468bedb52bf03ff125d721634f83604bddd589.tar.gz
nixlib-d4468bedb52bf03ff125d721634f83604bddd589.tar.bz2
nixlib-d4468bedb52bf03ff125d721634f83604bddd589.tar.lz
nixlib-d4468bedb52bf03ff125d721634f83604bddd589.tar.xz
nixlib-d4468bedb52bf03ff125d721634f83604bddd589.tar.zst
nixlib-d4468bedb52bf03ff125d721634f83604bddd589.zip
modules/virtualisation/qemu-vm: always enable serial console
Always enable both tty and serial console, but set preferred console
depending on cfg.graphical.
Even in qemu graphical mode, you can switch to the serial console via
Ctrl+Alt+3.

With that being done, you also don't need to specify
`systemd.services."serial-getty@ttyS0".enable = true;` either as described in
https://nixos.wiki/wiki/Cheatsheet#Building_a_service_as_a_VM_.28for_testing.29,
as systemd automatically spawns a getty on consoles passwd via cmdline.

This also means, vms built by 'nixos-rebuild build-vm' can simply be run
properly in nographic mode by appending `-nographic` to `result/bin/run-*-vm`,
without the need to explicitly add platform-specific QEMU_KERNEL_PARAMS.
Diffstat (limited to 'pkgs/applications/virtualization/singularity')
0 files changed, 0 insertions, 0 deletions