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

16 lines
403 B
Nix
Raw 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> ];
imports = [ (modulesPath + "/virtualisation/qemu-vm.nix" ];
2022-06-27 15:08:28 -07:00
config = {
virtualisation.graphics = false;
services.getty.autologinUser = "root";
users.users.root = {
openssh.authorizedKeys.keyFiles = [ ./id-vm.pub ];
};
};
}