fix VMs on nixos-22.05

This commit is contained in:
Erik Arvstedt 2022-06-28 00:08:28 +02:00
parent f52ff8fdb5
commit 15e7b32c2d
No known key found for this signature in database
GPG key ID: 33312B944DD97846
4 changed files with 15 additions and 6 deletions

View file

@ -1,7 +1,10 @@
{ modulesPath, ... }:
{
# Disable the hardened preset to improve VM performance
disabledModules = [ <nix-bitcoin/modules/presets/hardened.nix> ];
imports = [ "${modulesPath}/virtualisation/qemu-vm.nix" ];
config = {
virtualisation.graphics = false;
services.getty.autologinUser = "root";