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; [
|
2019-12-03 17:32:42 -08:00
|
|
|
firefox-bin
|
2019-08-06 10:56:54 -07:00
|
|
|
(pkgs.writeScriptBin "firefox-private" ''
|
|
|
|
#! ${pkgs.bash}/bin/bash
|
|
|
|
firefox --private-window "$@"
|
|
|
|
'')
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|