feat: improves virtualization modularity and implementation

This commit is contained in:
Ahwx 2025-09-09 08:13:15 +02:00
parent 8818d78bae
commit 0d89ebd2e5

View file

@ -1,4 +1,10 @@
{ pkgs, host, ... }: {
pkgs,
host,
config,
username,
...
}:
{ {
virtualisation = { virtualisation = {
# vmware.host.enable = true; # Causes issues for now :p # vmware.host.enable = true; # Causes issues for now :p
@ -12,10 +18,23 @@
true true
else else
false; false;
spiceUSBRedirection.enable = true; spiceUSBRedirection.enable =
if (config.virtualisation.libvirtd.enable == true) then true else false;
}; };
programs.virt-manager.enable = true; programs.virt-manager.enable =
if (config.virtualisation.waydroid.enable == true) then true else false;
#dconf.settings."org/virt-manager/virt-manager/connections" =
# if (config.programs.virt-manager.enable == true) then
# {
# autoconnect = [ "qemu:///system" ];
# uris = [ "qemu:///system" ];
# }
# else
# { };
users.groups.libvirtd.members =
if (config.virtualisation.waydroid.enable == true) then [ username ] else [ ];
# Enable qemu etc # Enable qemu etc
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [