Add virtualization module

This commit is contained in:
coolneng 2021-03-15 12:08:59 +01:00
parent 4914c537cb
commit 9ddf94f567
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
2 changed files with 12 additions and 0 deletions

View File

@ -89,6 +89,7 @@
./modules/hardware-configuration.nix ./modules/hardware-configuration.nix
./modules/networking.nix ./modules/networking.nix
./modules/datasync.nix ./modules/datasync.nix
./modules/virtualization.nix
]; ];
} }

View File

@ -0,0 +1,11 @@
{ config, lib, pkgs, ... }:
{
# Enable virtualisation
virtualisation.libvirtd = {
enable = true;
onBoot = "ignore";
onShutdown = "shutdown";
qemuPackage = pkgs.qemu_kvm;
};
}