all repos — nixfiles @ 7f73174893bc51d3c701f4a4cda515492641d270

System and user configuration, managed by nix and home-manager

system/settings/services/virtualisation.nix (view raw)

{
  config,
  pkgs,
  ...
}:
{
  virtualisation.libvirtd = {
    enable = true;
    onBoot = "ignore";
    onShutdown = "shutdown";
    qemu = {
      package = pkgs.qemu_kvm;
      ovmf.enable = true;
      runAsRoot = false;
    };
  };
  programs.virt-manager = {
    enable = true;
  };

  environment.systemPackages = with pkgs; [
    OVMF
  ];
}