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
				
			
		|  | @ -5,7 +5,14 @@ | |||
| }: let | ||||
|   mediaLocation = "/var/lib/immich"; | ||||
| in { | ||||
|   config = lib.mkIf (config.services.immich.enable && config.host.impermanence.enable) { | ||||
|   options.services.immich = { | ||||
|     impermanence.enable = lib.mkOption { | ||||
|       type = lib.types.bool; | ||||
|       default = config.services.immich.enable && config.host.impermanence.enable; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|   config = lib.mkIf config.services.immich.impermanence.enable { | ||||
|     assertions = [ | ||||
|       { | ||||
|         assertion = config.services.immich.mediaLocation == mediaLocation; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue