2025-01-18 15:59:06 +08:00
|
|
|
{
|
2025-04-28 21:20:32 +08:00
|
|
|
config,
|
|
|
|
|
lib,
|
|
|
|
|
...
|
2025-07-13 06:04:55 +08:00
|
|
|
}:
|
|
|
|
|
let
|
2025-04-28 21:20:32 +08:00
|
|
|
cfg = config.youthlic.programs.kvm;
|
2025-07-13 06:04:55 +08:00
|
|
|
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-07-13 06:04:55 +08:00
|
|
|
autoconnect = [ "qemu:///system" ];
|
|
|
|
|
uris = [ "qemu:///system" ];
|
2025-01-18 15:59:06 +08:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|