Add modules/desktop/browsers/brave.nix
This commit is contained in:
		
							parent
							
								
									07f82da2a2
								
							
						
					
					
						commit
						be343218e9
					
				
							
								
								
									
										28
									
								
								modules/desktop/browsers/brave.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								modules/desktop/browsers/brave.nix
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,28 @@ | |||
| # modules/browser/brave.nix --- https://publishers.basicattentiontoken.org | ||||
| # | ||||
| # A FOSS and privacy-minded browser. | ||||
| 
 | ||||
| { options, config, lib, pkgs, ... }: | ||||
| 
 | ||||
| with lib; | ||||
| with lib.my; | ||||
| let cfg = config.modules.desktop.browsers.brave; | ||||
| in { | ||||
|   options.modules.desktop.browsers.brave = { | ||||
|     enable = mkBoolOpt false; | ||||
|   }; | ||||
| 
 | ||||
|   config = mkIf cfg.enable { | ||||
|     user.packages = with pkgs; [ | ||||
|       brave | ||||
|       (makeDesktopItem { | ||||
|         name = "brave-private"; | ||||
|         desktopName = "Brave Web Browser"; | ||||
|         genericName = "Open a private Brave window"; | ||||
|         icon = "brave"; | ||||
|         exec = "${brave}/bin/brave --incognito"; | ||||
|         categories = "Network"; | ||||
|       }) | ||||
|     ]; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
		Reference in a new issue