helm/modules/browser/firefox.nix
2019-12-04 00:03:30 -05:00

19 lines
374 B
Nix

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