testing: raise the VM hardware resources
This commit is contained in:
parent
69ecfd613a
commit
8e62d129c0
@ -10,8 +10,11 @@ in
|
|||||||
./configuration.nix
|
./configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# VM hardware setup
|
||||||
virtualisation.memorySize = "4000"; # MB
|
virtualisation.memorySize = "4000"; # MB
|
||||||
virtualisation.graphics = false;
|
virtualisation.graphics = false;
|
||||||
|
virtualisation.cores = 4;
|
||||||
|
virtualisation.msize = 1 * 1024 * 1024;
|
||||||
|
|
||||||
virtualisation.qemu.options =
|
virtualisation.qemu.options =
|
||||||
[ # Ensure secrets are accessible by the
|
[ # Ensure secrets are accessible by the
|
||||||
@ -26,6 +29,10 @@ in
|
|||||||
neededForBoot = true;
|
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
|
# Automatically resize the console
|
||||||
environment.systemPackages = [ pkgs.xterm ];
|
environment.systemPackages = [ pkgs.xterm ];
|
||||||
environment.shellInit = "resize > /dev/null";
|
environment.shellInit = "resize > /dev/null";
|
||||||
|
Loading…
Reference in New Issue
Block a user