Add MIME defaults
This commit is contained in:
		
							parent
							
								
									aec2ed2303
								
							
						
					
					
						commit
						5ca9ad69cf
					
				
					 1 changed files with 23 additions and 0 deletions
				
			
		|  | @ -57,6 +57,29 @@ | |||
|       }; | ||||
| 
 | ||||
|     }; | ||||
| 
 | ||||
|     xdg.mimeApps = | ||||
|       let | ||||
|         browser = "firefox.desktop"; | ||||
|         image-viewer = "nsxiv.desktop"; | ||||
|       in { | ||||
|       enable = true; | ||||
| 
 | ||||
|       defaultApplications = { | ||||
|         "x-scheme-handler/http" = browser; | ||||
|         "x-scheme-handler/https" = browser; | ||||
|         "x-scheme-handler/chrome" = browser; | ||||
|         "text/html" = browser; | ||||
|         "application/x-extension-htm" = browser; | ||||
|         "application/x-extension-html" = browser; | ||||
|         "application/x-extension-shtml" = browser; | ||||
|         "application/xhtml+xml" = browser; | ||||
|         "application/x-extension-xhtml" = browser; | ||||
|         "application/x-extension-xht" = browser; | ||||
|         "image/jpeg" = image-viewer; | ||||
|         "image/png" = image-viewer; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue