1 { config, lib, pkgs, ... }:
4 cfg = config.programs.virt-manager;
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" { };
13 config = lib.mkIf cfg.enable {
14 environment.systemPackages = [ cfg.package ];
16 profiles.user.databases = [
19 "org/virt-manager/virt-manager/connections" = {
20 autoconnect = [ "qemu:///system" ];
21 uris = [ "qemu:///system" ];