feat: added impermanence for more applications
This commit is contained in:
		
							parent
							
								
									dd165d48fe
								
							
						
					
					
						commit
						ebf7ea3cf7
					
				
					 6 changed files with 93 additions and 24 deletions
				
			
		|  | @ -11,7 +11,20 @@ in { | |||
|     enable = mkEnableOption "Mapillary Desktop Uploader"; | ||||
|   }; | ||||
| 
 | ||||
|   config = mkIf cfg.enable { | ||||
|     home.packages = [pkgs.mapillary-uploader]; | ||||
|   }; | ||||
|   config = mkIf cfg.enable (mkMerge [ | ||||
|     { | ||||
|       home.packages = [pkgs.mapillary-uploader]; | ||||
|     } | ||||
|     ( | ||||
|       mkIf config.impermanence.enable { | ||||
|         home.persistence."/persist${config.home.homeDirectory}" = { | ||||
|           directories = [ | ||||
|             "${config.xdg.configHome}/mapillary-uploader" | ||||
|             "${config.xdg.dataHome}/mapillary-uploader" | ||||
|           ]; | ||||
|           allowOther = true; | ||||
|         }; | ||||
|       } | ||||
|     ) | ||||
|   ]); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue