Parameterise libvirt
This commit is contained in:
parent
ab39c6035c
commit
a23c3801cb
|
@ -6,7 +6,6 @@
|
|||
./hardware-configuration.nix
|
||||
../../modules/cpu/intel.nix
|
||||
../../modules/gpu/intel.nix
|
||||
../../modules/libvirt.nix
|
||||
../../modules
|
||||
../../profiles/dev.nix
|
||||
../../users/simon
|
||||
|
@ -14,6 +13,7 @@
|
|||
|
||||
sbruder = {
|
||||
gui = true;
|
||||
libvirt.enable = true;
|
||||
restic.enable = true;
|
||||
ssd.enable = true;
|
||||
wireguard.home = {
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
./hardware-configuration.nix
|
||||
../../modules/cpu/intel.nix
|
||||
../../modules/gpu/amd.nix
|
||||
../../modules/libvirt.nix
|
||||
../../modules
|
||||
../../profiles/dev.nix
|
||||
../../users/simon
|
||||
|
@ -14,6 +13,7 @@
|
|||
|
||||
sbruder = {
|
||||
gui = true;
|
||||
libvirt.enable = true;
|
||||
restic.enable = true;
|
||||
ssd.enable = true;
|
||||
wireguard.home = {
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
./docker.nix
|
||||
./fonts.nix
|
||||
./grub.nix
|
||||
./libvirt.nix
|
||||
./locales.nix
|
||||
./media.nix
|
||||
./network-manager.nix
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
virtualisation.libvirtd.enable = true;
|
||||
options.sbruder.libvirt.enable = lib.mkEnableOption "libvirt";
|
||||
|
||||
environment.systemPackages = lib.mkIf config.sbruder.gui [ pkgs.virt-manager ];
|
||||
config = {
|
||||
virtualisation.libvirtd.enable = config.sbruder.libvirt.enable;
|
||||
|
||||
environment.systemPackages = lib.mkIf config.sbruder.gui [ pkgs.virt-manager ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue