aboutsummaryrefslogtreecommitdiff
path: root/hosts/wonderland/virt.nix
blob: 48a416d6d3c95a275bfb2f8d60cc24ec45ae86ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ pkgs, ... }: {
  users.users.alice.extraGroups = [ "libvirtd" ];
  home-manager.users.alice.dconf.settings = {
    "org/virt-manager/virt-manager/connections" = {
      autoconnect = [ "qemu:///system" ];
      uris = [ "qemu:///system" ];
    };
  };

  programs.virt-manager.enable = true;
  virtualisation.libvirtd = {
    enable = true;
    qemu = {
      package = pkgs.qemu_kvm;
      swtpm.enable = true;
    };
  };
}