2020-01-12 23:11:02 -08:00
|
|
|
# modules/browser/firefox.nix --- https://www.mozilla.org/en-US/firefox
|
|
|
|
#
|
|
|
|
# Oh firefox, gateway to the interwebs, devourer of ram. Give onto me your
|
|
|
|
# infinite knowledge and shelter me from ads.
|
2019-08-06 10:56:54 -07:00
|
|
|
|
2020-01-12 23:11:02 -08:00
|
|
|
{ config, lib, pkgs, ... }:
|
2019-08-06 10:56:54 -07:00
|
|
|
{
|
2020-01-12 15:17:17 -08:00
|
|
|
my.packages = with pkgs; [
|
|
|
|
firefox-bin (pkgs.writeScriptBin "firefox-private" ''
|
|
|
|
#! ${pkgs.bash}/bin/bash
|
|
|
|
firefox --private-window "$@"
|
|
|
|
'')
|
|
|
|
(makeDesktopItem {
|
|
|
|
name = "firefox-private";
|
|
|
|
desktopName = "Firefox (Private)";
|
|
|
|
genericName = "Open a private Firefox window";
|
|
|
|
icon = "firefox";
|
|
|
|
exec = "${firefox-bin}/bin/firefox --private-window";
|
|
|
|
categories = "Network";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
my.env.BROWSER = "firefox";
|
|
|
|
my.env.XDG_DESKTOP_DIR = "$HOME"; # prevent firefox creating ~/Desktop
|
2019-08-06 10:56:54 -07:00
|
|
|
}
|