add kvm supports and add quickemu

This commit is contained in:
ulic-youthlic 2025-01-18 15:59:06 +08:00
parent 2842a89b60
commit d159fed672
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
6 changed files with 65 additions and 0 deletions

View file

@ -24,6 +24,7 @@
./wluma.nix
./waybar.nix
./mpv.nix
./kvm.nix
];
options = {

21
home/modules/kvm.nix Normal file
View file

@ -0,0 +1,21 @@
{ config, lib, ... }:
let
cfg = config.youthlic.programs.kvm;
in
{
options = {
youthlic.programs.kvm = {
enable = lib.mkEnableOption "kvm";
};
};
config = lib.mkIf cfg.enable {
dconf = {
settings = {
"org/virt-manager/virt-manager/connections" = {
autoconnect = [ "qemu:///system" ];
uris = [ "qemu:///system" ];
};
};
};
};
}