Change-Id: Iaa74d995f3b2556673095a32ec2b718dcb2d82a4 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8849 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
		
			
				
	
	
		
			26 lines
		
	
	
	
		
			534 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
	
		
			534 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| # Host the Monica personal CRM software.
 | |
| { depot, config, ... }:
 | |
| 
 | |
| {
 | |
|   imports = [
 | |
|     (depot.third_party.agenix.src + "/modules/age.nix")
 | |
|   ];
 | |
| 
 | |
|   age.secrets.monica-appkey = {
 | |
|     group = config.services.monica.group;
 | |
|     file = depot.users.tazjin.secrets."monica-appkey.age";
 | |
|     mode = "0440";
 | |
|   };
 | |
| 
 | |
|   services.monica = {
 | |
|     enable = true;
 | |
|     hostname = "monica.tazj.in";
 | |
|     appKeyFile = "/run/agenix/monica-appkey";
 | |
|     database.createLocally = true;
 | |
| 
 | |
|     nginx = {
 | |
|       enableACME = true;
 | |
|       forceSSL = true;
 | |
|     };
 | |
|   };
 | |
| }
 |