testing: save some common cli options

This commit is contained in:
Michele Guerini Rocco 2020-11-10 01:05:00 +01:00
parent 275d11226a
commit ce35396da0
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

@ -10,11 +10,18 @@ in
./configuration.nix ./configuration.nix
]; ];
# Ensure secrets are accessible by the virtualisation.memorySize = "4000"; # MB
# activation scripts at runtime.
virtualisation.qemu.options = [ virtualisation.qemu.options = [
# Use serial console to access the VM
"-display none"
"-serial mon:stdio"
# Ensure secrets are accessible by the
# activation scripts at runtime.
"-virtfs local,path=${secrets},security_model=none,mount_tag=secrets" "-virtfs local,path=${secrets},security_model=none,mount_tag=secrets"
]; ];
fileSystems = lib.mkVMOverride { fileSystems = lib.mkVMOverride {
"${secrets}" = "${secrets}" =
{ device = "secrets"; { device = "secrets";