mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 06:50:14 +01:00
fix: make username a libvirtd group member if libvirtd is enabled, as opposed to waydroid
This commit is contained in:
parent
efff74008b
commit
dc39c3f1fe
1 changed files with 3 additions and 1 deletions
|
|
@ -12,6 +12,8 @@
|
||||||
libvirtd.enable =
|
libvirtd.enable =
|
||||||
if (host == "violet") then
|
if (host == "violet") then
|
||||||
true
|
true
|
||||||
|
else if (host == "dandelion") then
|
||||||
|
true
|
||||||
else if (host == "sakura") then
|
else if (host == "sakura") then
|
||||||
true
|
true
|
||||||
else if (host == "yoshino") then
|
else if (host == "yoshino") then
|
||||||
|
|
@ -36,7 +38,7 @@
|
||||||
# { };
|
# { };
|
||||||
|
|
||||||
users.groups.libvirtd.members =
|
users.groups.libvirtd.members =
|
||||||
if (config.virtualisation.waydroid.enable == true) then [ username ] else [ ];
|
if (config.virtualisation.libvirtd.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