From 8e62d129c0fd89186e4a9fd145f63143513fddc2 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Wed, 29 Sep 2021 18:20:47 +0200 Subject: [PATCH] testing: raise the VM hardware resources --- testing.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/testing.nix b/testing.nix index 978bec8..49a35f8 100644 --- a/testing.nix +++ b/testing.nix @@ -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";