Add services/teamviewer module
This commit is contained in:
		
							parent
							
								
									3da2c0c62e
								
							
						
					
					
						commit
						2736c461a1
					
				|  | @ -62,6 +62,8 @@ | |||
|     }; | ||||
|     services = { | ||||
|       ssh.enable = true; | ||||
|       # Needed occasionally to help the parental units with PC problems | ||||
|       # teamviewer.enable = true; | ||||
|     }; | ||||
|     themes.fluorescence.enable = true; | ||||
|   }; | ||||
|  |  | |||
							
								
								
									
										14
									
								
								modules/services/teamviewer.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								modules/services/teamviewer.nix
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,14 @@ | |||
| { options, config, lib, pkgs, ... }: | ||||
| 
 | ||||
| with lib; | ||||
| with lib.my; | ||||
| let cfg = config.modules.services.teamviewer; | ||||
| in { | ||||
|   options.modules.services.teamviewer = { | ||||
|     enable = mkBoolOpt false; | ||||
|   }; | ||||
| 
 | ||||
|   config = mkIf cfg.enable { | ||||
|     services.teamviewer.enable = true; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
		Reference in a new issue