testing: raise the VM hardware resources

This commit is contained in:
Michele Guerini Rocco 2021-09-29 18:20:47 +02:00
parent 69ecfd613a
commit 8e62d129c0
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

@ -10,8 +10,11 @@ in
./configuration.nix
];
# VM hardware setup
virtualisation.memorySize = "4000"; # MB
virtualisation.graphics = false;
virtualisation.cores = 4;
virtualisation.msize = 1 * 1024 * 1024;
virtualisation.qemu.options =
[ # Ensure secrets are accessible by the
@ -26,6 +29,10 @@ in
neededForBoot = true;
};
# These don't work in a virtual machine
systemd.services.smartd.enable = lib.mkForce false;
systemd.services.apcupsd.enable = lib.mkForce false;
# Automatically resize the console
environment.systemPackages = [ pkgs.xterm ];
environment.shellInit = "resize > /dev/null";