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

16 lines
404 B
Nix
Raw Normal View History

2022-06-28 01:08:28 +03:00
{ modulesPath, ... }:
{
# 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
config = {
virtualisation.graphics = false;
services.getty.autologinUser = "root";
users.users.root = {
openssh.authorizedKeys.keyFiles = [ ./id-vm.pub ];
};
};
}