vms
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ config, lib, ... }: {
|
||||
{ config, lib, pkgs, ... }: {
|
||||
|
||||
options.sysconfig.virtual-machines.enable = with lib; mkOption {
|
||||
type = with types; bool;
|
||||
@@ -15,8 +15,14 @@
|
||||
config = lib.mkIf config.sysconfig.virtual-machines.enable {
|
||||
programs.virt-manager.enable = true;
|
||||
|
||||
virtualisation.libvirtd.enable = true;
|
||||
virtualisation = {
|
||||
libvirtd.enable = true;
|
||||
|
||||
virtualisation.spiceUSBRedirection.enable = true;
|
||||
spiceUSBRedirection.enable = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; lib.mkIf config.sysconfig.graphical [
|
||||
virt-viewer
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user