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

16 lines
404 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> ];
2022-11-03 16:33:53 -07:00
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 ];
};
};
}