This commit is contained in:
Reid 2026-04-19 23:02:22 -07:00
parent 8cc5923e4e
commit 3316abb573
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD
2 changed files with 26 additions and 0 deletions

View file

@ -95,6 +95,7 @@
system.ananicy.enable = true; system.ananicy.enable = true;
system.zswap.enable = true; system.zswap.enable = true;
system.kdeconnect.enable = true; system.kdeconnect.enable = true;
system.virt-manager.enable = true;
# editors # editors
editors.micro.enable = true; editors.micro.enable = true;
editors.vscode.enable = true; editors.vscode.enable = true;

View file

@ -0,0 +1,25 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.modules.software.system.virt-manager;
in {
options.modules.software.system.virt-manager = {
enable = mkEnableOption "Enable virt-manager, a GUI VM manager and runner";
};
config = mkIf cfg.enable {
programs.virt-manager.enable = true;
users.groups.libvirtd.members = [ config.user.name ];
virtualisation.libvirtd.enable = true;
virtualisation.libvirtd.qemu.vhostUserPackages = with pkgs; [ virtiofsd ];
virtualisation.spiceUSBRedirection.enable = true;
hm.dconf.settings."org/virt-manager/virt-manager/connections" = {
autoconnect = ["qemu:///system"];
uris = ["qemu:///system"];
};
};
}