2025-01-18 15:59:06 +08:00
|
|
|
{
|
2025-04-28 21:20:32 +08:00
|
|
|
config,
|
|
|
|
|
lib,
|
|
|
|
|
...
|
|
|
|
|
}: let
|
|
|
|
|
cfg = config.youthlic.programs.kvm;
|
|
|
|
|
in {
|
2025-01-18 15:59:06 +08:00
|
|
|
options = {
|
|
|
|
|
youthlic.programs.kvm = {
|
|
|
|
|
enable = lib.mkEnableOption "kvm";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
|
dconf = {
|
|
|
|
|
settings = {
|
|
|
|
|
"org/virt-manager/virt-manager/connections" = {
|
2025-04-28 21:20:32 +08:00
|
|
|
autoconnect = ["qemu:///system"];
|
|
|
|
|
uris = ["qemu:///system"];
|
2025-01-18 15:59:06 +08:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|