nix-bitcoin/examples/qemu-vm/vm-config.nix

16 lines
402 B
Nix
Raw Permalink Normal View History

2022-06-27 15:08:28 -07:00
{ modulesPath, ... }:
{
# Disable the hardened preset to improve VM performance
disabledModules = [ <nix-bitcoin/modules/presets/hardened.nix> ];
2022-06-27 15:08:28 -07:00
imports = [ "${modulesPath}/virtualisation/qemu-vm.nix" ];
config = {
virtualisation.graphics = false;
services.getty.autologinUser = "root";
users.users.root = {
openssh.authorizedKeys.keyFiles = [ ./id-vm.pub ];
};
};
}