20 lines
		
	
	
		
			355 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			355 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| {
 | |
|   lib,
 | |
|   pkgs,
 | |
|   config,
 | |
|   ...
 | |
| }:
 | |
| with lib; let
 | |
|   cfg = config.vm.guest-services;
 | |
| in {
 | |
|   options.vm.guest-services = {
 | |
|     enable = mkEnableOption "Enable Virtual Machine Guest Services";
 | |
|   };
 | |
| 
 | |
|   config = mkIf cfg.enable {
 | |
|     services.qemuGuest.enable = true;
 | |
|     services.spice-vdagentd.enable = true;
 | |
|     services.spice-webdavd.enable = true;
 | |
|   };
 | |
| }
 | 
