python312Packages.zodbpickle: switch to pypa builder and enable tests
[NixPkgs.git] / nixos / modules / programs / virt-manager.nix
blob9b5fa22268ae9bf1521b47ee6bd3c0e509c74a64
1 { config, lib, pkgs, ... }:
3 let
4   cfg = config.programs.virt-manager;
5 in
7   options.programs.virt-manager = {
8     enable = lib.mkEnableOption "virt-manager, an UI for managing virtual machines in libvirt";
10     package = lib.mkPackageOption pkgs "virt-manager" { };
11   };
13   config = lib.mkIf cfg.enable {
14     environment.systemPackages = [ cfg.package ];
15     programs.dconf = {
16       profiles.user.databases = [
17         {
18           settings = {
19             "org/virt-manager/virt-manager/connections" = {
20               autoconnect = [ "qemu:///system" ];
21               uris = [ "qemu:///system" ];
22             };
23           };
24         }
25       ];
26     };
27   };