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