nix/modules/wm/home/firefox/default.nix

176 lines
5 KiB
Nix
Raw Normal View History

2024-10-04 22:32:42 +02:00
{inputs, ...}: let
2024-10-04 20:34:50 +02:00
userChrome = builtins.readFile (./. + "/userChrome");
2024-10-04 22:32:42 +02:00
in {
2024-10-05 00:31:24 +02:00
programs.firefox = {
enable = true;
profiles.joy = {
userChrome = userChrome;
extensions = with inputs.firefox-addons.packages."x86_64-linux"; [
ublock-origin
darkreader
libredirect
search-by-image
terms-of-service-didnt-read
istilldontcareaboutcookies
decentraleyes
2024-10-18 00:01:18 +02:00
mtab
2024-10-05 00:31:24 +02:00
];
search.engines = {
"4get" = {
urls = [
{
template = "https://4get.joygnu.org/web";
params = [
{
name = "s";
value = "{searchTerms}";
}
];
}
];
definedAliases = ["@4get"];
2024-08-31 16:04:57 +02:00
};
2024-10-05 00:31:24 +02:00
};
search.force = true;
search.default = "4get";
2024-08-31 16:04:57 +02:00
2024-10-05 00:31:24 +02:00
bookmarks = [
{
name = "Bookmarks";
toolbar = true;
bookmarks = [
{
name = "Packages";
url = "https://search.nixos.org/packages?channel=unstable";
}
2024-11-08 11:58:22 +01:00
{
name = "PR";
url = "https://nixpk.gs/pr-tracker.html";
}
2024-10-05 00:31:24 +02:00
{
name = "Homemanager";
2024-11-05 23:02:58 +01:00
url = "https://home-manager-options.extranix.com/?query=&release=master";
2024-10-05 00:31:24 +02:00
}
{
name = "Stylix";
url = "https://stylix.danth.me/options/nixos.html";
}
{
name = "Git";
url = "https://git.joygnu.org/";
}
2024-11-05 23:02:58 +01:00
{
name = "Syncserver";
url = "https://sync.joygnu.org/";
}
2024-10-05 00:31:24 +02:00
{
name = "Photos";
url = "https://immich.joygnu.org/";
}
{
name = "Translate";
url = "https://trans.joygnu.org/";
}
{
name = "Server";
url = "https://avoro.eu/cp/clientarea.php?action=productdetails&id=27920";
}
2024-10-04 20:34:50 +02:00
{
2024-10-05 00:31:24 +02:00
name = "Domain";
url = "https://ap.www.namecheap.com/domains/list/";
}
2024-10-18 11:28:47 +02:00
{
name = "Github";
url = "https://www.github.com";
}
2024-10-05 00:31:24 +02:00
{
name = "Hyprland";
url = "https://wiki.hyprland.org/";
}
{
name = "Helix";
url = "https://helix-editor.com/";
}
2024-11-05 23:02:58 +01:00
{
name = "Yazi";
url = "https://yazi-rs.github.io/docs/installation";
}
2024-10-05 00:31:24 +02:00
{
name = "Monkeytype";
url = "https://monkeytype.com/";
}
{
name = "Zophar's Domain";
url = "https://www.zophar.net/music";
}
{
name = "Syncthing";
url = "http://localhost:8384/";
}
{
name = "invidious";
2024-10-20 00:54:59 +02:00
url = "https://yt.joygnu.org/";
2024-10-05 00:31:24 +02:00
}
];
}
];
settings = {
"dom.security.https_only_mode" = true;
"browser.download.panel.shown" = true;
"identity.fxaccounts.enabled" = false;
"signon.rememberSignons" = false;
"browser.urlbar.pocket.featureGate" = false;
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
"browser.shell.checkDefaultBrowser" = false;
"browser.shell.defaultBrowserCheckCount" = 1;
"privacy.trackingprotection.enabled" = true;
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
"browser.uiCustomization.state" = ''
{
"placements": {
"widget-overflow-fixed-list": [],
"nav-bar": [
"back-button",
"forward-button",
"stop-reload-button",
"urlbar-container",
"downloads-button",
2024-08-31 16:04:57 +02:00
"ublock0_raymondhill_net-browser-action",
"addon_darkreader_org-browser-action",
"_testpilot-containers-browser-action"
],
2024-10-05 00:31:24 +02:00
"toolbar-menubar": [
"menubar-items"
2024-08-31 16:04:57 +02:00
],
2024-10-05 00:31:24 +02:00
"TabsToolbar": [
"tabbrowser-tabs",
"new-tab-button",
"alltabs-button"
],
"PersonalToolbar": [
"personal-bookmarks"
]
},
"seen": [
"save-to-pocket-button",
"developer-button",
"ublock0_raymondhill_net-browser-action",
"addon_darkreader_org-browser-action",
"_testpilot-containers-browser-action"
],
"dirtyAreaCache": [
"nav-bar",
"PersonalToolbar",
"toolbar-menubar",
"TabsToolbar",
"widget-overflow-fixed-list"
],
"currentVersion": 18,
"newElementCount": 4
}
'';
2024-08-31 16:04:57 +02:00
};
};
2024-10-05 00:31:24 +02:00
};
2024-08-31 16:04:57 +02:00
}