libvirt: Remove custom option

This commit is contained in:
Simon Bruder 2021-01-20 16:31:59 +01:00
parent e5f90116e8
commit d8b8e5de93
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
3 changed files with 7 additions and 7 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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 ];
};
}