helm/modules/browser/firefox.nix

19 lines
370 B
Nix
Raw Normal View History

2019-08-06 10:56:54 -07:00
{ config, lib, pkgs, ... }:
{
environment = {
sessionVariables = {
BROWSER = "firefox";
XDG_DESKTOP_DIR = "$HOME"; # prevent firefox creating ~/Desktop
};
systemPackages = with pkgs; [
firefox
(pkgs.writeScriptBin "firefox-private" ''
#! ${pkgs.bash}/bin/bash
firefox --private-window "$@"
'')
];
};
}