update firefox module
This commit is contained in:
		
							parent
							
								
									7854100358
								
							
						
					
					
						commit
						86cf517738
					
				
					 3 changed files with 14 additions and 4 deletions
				
			
		|  | @ -5,9 +5,9 @@ | |||
|   ... | ||||
| }: | ||||
| with lib; let | ||||
|   cfg = config.local.apps.browsers; | ||||
|   cfg = config.local.apps.firefox; | ||||
| in { | ||||
|   options.local.apps.browsers = { | ||||
|   options.local.apps.firefox = { | ||||
|     enable = mkEnableOption "firefox settings"; | ||||
| 
 | ||||
|     workspace = mkOption { | ||||
|  | @ -22,6 +22,17 @@ in { | |||
|   config = mkIf cfg.enable { | ||||
|     programs.firefox.enable = true; | ||||
| 
 | ||||
|     xdg = { | ||||
|       mimeApps = { | ||||
|         enable = true; | ||||
|         defaultApplications = { | ||||
|           "text/uri-list" = with pkgs; ["firefox"]; | ||||
|           "x-scheme-handler/http" = with pkgs; ["firefox"]; | ||||
|           "x-scheme-handler/https" = with pkgs; ["firefox"]; | ||||
|         }; | ||||
|       }; | ||||
|     }; | ||||
| 
 | ||||
|     xsession.windowManager.i3.config.startup = optional (cfg.workspace != null) { | ||||
|       command = "${lib.getExe pkgs.i3-gaps} 'workspace ${cfg.workspace}; exec ${lib.getExe pkgs.firefox}'"; | ||||
|     }; | ||||
|  |  | |||
|  | @ -120,7 +120,6 @@ in { | |||
|           enable = true; | ||||
|           defaultApplications = { | ||||
|             "application/pdf" = with pkgs; ["qpdfview"]; | ||||
|             "text/uri-list" = with pkgs; ["firefox"]; | ||||
|             "x-scheme-handler/file" = with pkgs; ["kitty"]; | ||||
|           }; | ||||
|         }; | ||||
|  |  | |||
|  | @ -43,7 +43,7 @@ | |||
|       defaultDesktopPack.enable = true; | ||||
|       firefox = { | ||||
|         enable = true; | ||||
|         workspace = 1; | ||||
|         workspace = "1"; #make this an int later | ||||
|       }; | ||||
|     }; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue