diff --git a/configuration.nix b/configuration.nix index 58580e2..1d0d724 100644 --- a/configuration.nix +++ b/configuration.nix @@ -89,6 +89,7 @@ ./modules/hardware-configuration.nix ./modules/networking.nix ./modules/datasync.nix + ./modules/virtualization.nix ]; } diff --git a/modules/virtualization.nix b/modules/virtualization.nix new file mode 100644 index 0000000..fc495cb --- /dev/null +++ b/modules/virtualization.nix @@ -0,0 +1,11 @@ +{ config, lib, pkgs, ... }: + +{ + # Enable virtualisation + virtualisation.libvirtd = { + enable = true; + onBoot = "ignore"; + onShutdown = "shutdown"; + qemuPackage = pkgs.qemu_kvm; + }; +}