add: system modules and options
This commit is contained in:
		
							parent
							
								
									9bfc70318d
								
							
						
					
					
						commit
						47eb3e0691
					
				
					 21 changed files with 269 additions and 158 deletions
				
			
		
							
								
								
									
										28
									
								
								system/modules/virtulization/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								system/modules/virtulization/default.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,28 @@
 | 
			
		|||
{config, pkgs, ... }:
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
  environment.systemPackages = with pkgs; [
 | 
			
		||||
    virt-manager
 | 
			
		||||
    virt-viewer
 | 
			
		||||
    spice 
 | 
			
		||||
    spice-gtk
 | 
			
		||||
    spice-protocol
 | 
			
		||||
    win-virtio
 | 
			
		||||
    win-spice
 | 
			
		||||
    gnome.adwaita-icon-theme
 | 
			
		||||
  ];
 | 
			
		||||
  
 | 
			
		||||
  virtualisation = {
 | 
			
		||||
    libvirtd = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      qemu = {
 | 
			
		||||
        swtpm.enable = true;
 | 
			
		||||
        ovmf.enable = true;
 | 
			
		||||
        ovmf.packages = [ pkgs.OVMFFull.fd ];
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
    spiceUSBRedirection.enable = true;
 | 
			
		||||
  };
 | 
			
		||||
  services.spice-vdagentd.enable = true;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue