helm/modules/browser/firefox.nix
2019-12-09 02:56:13 -05:00

26 lines
652 B
Nix

{ config, lib, pkgs, ... }:
{
environment = {
systemPackages = 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";
})
];
variables = {
BROWSER = "firefox";
XDG_DESKTOP_DIR = "$HOME"; # prevent firefox creating ~/Desktop
};
};
}