added vm auto-resizing screens.
This commit is contained in:
		
							parent
							
								
									43a47321e4
								
							
						
					
					
						commit
						07a4bf6477
					
				
					 11 changed files with 70 additions and 38 deletions
				
			
		
							
								
								
									
										13
									
								
								roles/nixos/graphical-vm.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								roles/nixos/graphical-vm.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,13 @@
 | 
			
		|||
{
 | 
			
		||||
  config,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  lib,
 | 
			
		||||
  ...
 | 
			
		||||
}: {
 | 
			
		||||
  #note: needs to have something that autostarts desktop files.
 | 
			
		||||
  services.spice-vdagentd.enable = true;
 | 
			
		||||
  imports = [
 | 
			
		||||
    ./vm.nix
 | 
			
		||||
  ];
 | 
			
		||||
  host.gui.enable = true;
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										10
									
								
								roles/nixos/vm.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								roles/nixos/vm.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,10 @@
 | 
			
		|||
{
 | 
			
		||||
  config,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  lib,
 | 
			
		||||
  inputs,
 | 
			
		||||
  ...
 | 
			
		||||
}: {
 | 
			
		||||
  services.qemuGuest.enable = true;
 | 
			
		||||
  host.isVm = true;
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue