forked from jan-leila/nix-config
		
	feat: added per service enable options for impermanence configs
This commit is contained in:
		
							parent
							
								
									a8af8930fa
								
							
						
					
					
						commit
						89793fca6a
					
				
					 15 changed files with 120 additions and 15 deletions
				
			
		|  | @ -3,7 +3,14 @@ | |||
|   config, | ||||
|   ... | ||||
| }: { | ||||
|   config = lib.mkIf (config.services.flaresolverr.enable && config.host.impermanence.enable) { | ||||
|   options.services.flaresolverr = { | ||||
|     impermanence.enable = lib.mkOption { | ||||
|       type = lib.types.bool; | ||||
|       default = config.services.flaresolverr.enable && config.host.impermanence.enable; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|   config = lib.mkIf config.services.flaresolverr.impermanence.enable { | ||||
|     # FlareSolverr typically doesn't need persistent storage as it's a proxy service | ||||
|     # but we'll add basic structure in case it's needed for logs or configuration | ||||
|     environment.persistence."/persist/system/root" = { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue