2023-10-16 15:45:15 +00:00
|
|
|
nurpkgs:
|
|
|
|
{ pkgs, lib, ... }@args:
|
2023-10-08 14:57:57 +00:00
|
|
|
|
|
|
|
let
|
2023-10-16 15:45:15 +00:00
|
|
|
firefoxAddons = import ./addons.nix (args // { inherit nurpkgs; });
|
2023-10-08 14:57:57 +00:00
|
|
|
firefoxSettings = {
|
|
|
|
"browser.aboutConfig.showWarning" = false;
|
|
|
|
"browser.toolbars.bookmarks.visibility" = "always";
|
|
|
|
"browser.tabs.firefox-view" = false;
|
|
|
|
"browser.shell.checkDefaultBrowser" = false;
|
2023-10-13 08:08:32 +00:00
|
|
|
"browser.translations.automaticallyPopup" = false;
|
|
|
|
"signon.rememberSignons" = false;
|
2023-10-17 06:44:33 +00:00
|
|
|
"media.webspeech.synth.dont_notify_on_error" = true;
|
2023-10-18 18:17:03 +00:00
|
|
|
"browser.gesture.swipe.left" = false;
|
|
|
|
"browser.gesture.swipe.right" = false;
|
2023-10-08 14:57:57 +00:00
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
programs.firefox = {
|
|
|
|
enable = true;
|
|
|
|
profiles = {
|
|
|
|
default = {
|
|
|
|
id = 0;
|
|
|
|
isDefault = true;
|
|
|
|
settings = firefoxSettings;
|
|
|
|
extensions = firefoxAddons.default;
|
|
|
|
};
|
|
|
|
sue = {
|
|
|
|
id = 1;
|
|
|
|
settings = firefoxSettings;
|
|
|
|
extensions = firefoxAddons.sue;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
xdg.desktopEntries.firefox-sue = {
|
|
|
|
categories = [ "Network" "WebBrowser" ];
|
|
|
|
exec = "firefox -P sue --name firefox %U";
|
|
|
|
genericName = "Web Browser";
|
|
|
|
icon = "firefox";
|
|
|
|
mimeType = [
|
|
|
|
"text/html"
|
|
|
|
"text/xml"
|
|
|
|
"application/xhtml+xml"
|
|
|
|
"application/vnd.mozilla.xul+xml"
|
|
|
|
"x-scheme-handler/http"
|
|
|
|
"x-scheme-handler/https"
|
|
|
|
];
|
|
|
|
name = "Firefox | Sue";
|
|
|
|
startupNotify = true;
|
|
|
|
terminal = false;
|
|
|
|
type = "Application";
|
|
|
|
};
|
2023-10-13 08:44:05 +00:00
|
|
|
|
|
|
|
xdg.desktopEntries.firefox = lib.mkForce {
|
|
|
|
categories = [ "Network" "WebBrowser" ];
|
|
|
|
exec = "firefox --new-window --name firefox %U";
|
|
|
|
genericName = "Web Browser";
|
|
|
|
icon = "firefox";
|
|
|
|
mimeType = [
|
|
|
|
"text/html"
|
|
|
|
"text/xml"
|
|
|
|
"application/xhtml+xml"
|
|
|
|
"application/vnd.mozilla.xul+xml"
|
|
|
|
"x-scheme-handler/http"
|
|
|
|
"x-scheme-handler/https"
|
|
|
|
];
|
|
|
|
name = "Firefox";
|
|
|
|
startupNotify = true;
|
|
|
|
terminal = false;
|
|
|
|
type = "Application";
|
|
|
|
};
|
2023-10-08 14:57:57 +00:00
|
|
|
};
|
|
|
|
}
|