mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 06:50:14 +01:00
feat: improves virtualization modularity and implementation
This commit is contained in:
parent
8818d78bae
commit
0d89ebd2e5
1 changed files with 22 additions and 3 deletions
|
|
@ -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; [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue