39 lines
906 B
Nix
39 lines
906 B
Nix
{ lib, pkgs, ... }:
|
|
|
|
let
|
|
# For now, we ignore this and don't install it
|
|
ffPkgs = if ( lib.hasSuffix "-darwin" pkgs.system )
|
|
then pkgs.firefox-unwrapped
|
|
else pkgs.firefox-wayland.override { cfg.enableGnomeExtensions = true; };
|
|
|
|
vars = {
|
|
MOZ_ENABLE_WAYLAND = "1";
|
|
XDG_CURRENT_DESKTOP = "sway";
|
|
};
|
|
in with lib;
|
|
{
|
|
programs.firefox = {
|
|
enable = (if (lib.hasSuffix "-darwin" pkgs.system) then false else true);
|
|
package = ffPkgs;
|
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
|
bitwarden
|
|
octotree
|
|
refined-github
|
|
tree-style-tab
|
|
ublock-origin
|
|
];
|
|
profiles = {
|
|
default.settings = {
|
|
"browser.startup.page" = 3;
|
|
"browser.startup.homepage" = "https://thehellings.com";
|
|
"doh-rollout.doorhanger-decision" = "UIDisabled";
|
|
"doh-rollout.doneFirstRun" = true;
|
|
};
|
|
};
|
|
};
|
|
|
|
programs.bash.sessionVariables = vars;
|
|
|
|
programs.xonsh.sessionVariables = vars;
|
|
}
|