2022-06-27 15:08:28 -07:00
|
|
|
{ modulesPath, ... }:
|
2021-03-08 06:11:15 -08:00
|
|
|
{
|
2021-03-08 06:11:17 -08:00
|
|
|
# Disable the hardened preset to improve VM performance
|
|
|
|
disabledModules = [ <nix-bitcoin/modules/presets/hardened.nix> ];
|
|
|
|
|
2022-11-03 16:33:53 -07:00
|
|
|
imports = [ (modulesPath + "/virtualisation/qemu-vm.nix") ];
|
2022-06-27 15:08:28 -07:00
|
|
|
|
2021-03-08 06:11:17 -08:00
|
|
|
config = {
|
|
|
|
virtualisation.graphics = false;
|
2021-08-04 15:48:58 -07:00
|
|
|
services.getty.autologinUser = "root";
|
2021-03-08 06:11:17 -08:00
|
|
|
users.users.root = {
|
|
|
|
openssh.authorizedKeys.keyFiles = [ ./id-vm.pub ];
|
|
|
|
};
|
2021-03-08 06:11:15 -08:00
|
|
|
};
|
|
|
|
}
|