libvirt: Remove custom option
This commit is contained in:
parent
e5f90116e8
commit
d8b8e5de93
|
@ -13,7 +13,6 @@
|
|||
games.enable = true;
|
||||
gpu.intel.enable = true;
|
||||
gui.enable = true;
|
||||
libvirt.enable = true;
|
||||
media-proxy.enable = true;
|
||||
restic.enable = true;
|
||||
ssd.enable = true;
|
||||
|
@ -24,6 +23,8 @@
|
|||
};
|
||||
};
|
||||
|
||||
virtualisation.libvirtd.enable = true;
|
||||
|
||||
services.tor = {
|
||||
enable = true;
|
||||
client.enable = true;
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
games.enable = true;
|
||||
gpu.amd.enable = true;
|
||||
gui.enable = true;
|
||||
libvirt.enable = true;
|
||||
media-proxy.enable = true;
|
||||
restic = {
|
||||
enable = true;
|
||||
|
@ -29,6 +28,8 @@
|
|||
};
|
||||
};
|
||||
|
||||
virtualisation.libvirtd.enable = true;
|
||||
|
||||
services.tor = {
|
||||
enable = true;
|
||||
client.enable = true;
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
options.sbruder.libvirt.enable = lib.mkEnableOption "libvirt";
|
||||
|
||||
config = {
|
||||
virtualisation.libvirtd.enable = config.sbruder.libvirt.enable;
|
||||
|
||||
environment.systemPackages = lib.mkIf config.sbruder.gui.enable [ pkgs.virt-manager ];
|
||||
environment.systemPackages = lib.mkIf
|
||||
(config.sbruder.gui.enable && config.virtualisation.libvirtd.enable)
|
||||
[ pkgs.virt-manager ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue