All checks were successful
Build iso when a new version is pushed / test (push) Successful in 11m57s
17 lines
459 B
Nix
17 lines
459 B
Nix
{ config, lib, inputs, pkgs, ... }:
|
|
|
|
{
|
|
options.mods.virtualManager.enable = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = true;
|
|
description = "enable virtual manager as host";
|
|
};
|
|
|
|
config = lib.mkIf config.mods.virtualManager.enable {
|
|
programs.virt-manager.enable = true;
|
|
virtualisation.libvirtd.enable = true;
|
|
virtualisation.libvirtd.qemu.runAsRoot = true;
|
|
virtualisation.libvirtd.qemu.vhostUserPackages = [ pkgs.virtiofsd ];
|
|
};
|
|
}
|