2023-10-09 09:25:17 +00:00
|
|
|
args:
|
2023-10-08 14:57:57 +00:00
|
|
|
|
|
|
|
let
|
2023-10-09 09:25:17 +00:00
|
|
|
firefoxAddons = import ./addons.nix args;
|
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;
|
|
|
|
};
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|