nix/firefox/default.nix

181 lines
5.1 KiB
Nix
Raw Normal View History

2024-11-08 18:23:40 +01:00
{
inputs,
username,
domain,
...
}: 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;
2024-11-08 18:23:40 +01:00
profiles.${username} = {
2024-10-05 00:31:24 +02:00
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 = [
{
2024-11-08 18:23:40 +01:00
template = "https://4get.${domain}/web";
2024-10-05 00:31:24 +02:00
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";
2024-11-08 18:23:40 +01:00
url = "https://git.${domain}/";
2024-10-05 00:31:24 +02:00
}
2024-11-05 23:02:58 +01:00
{
name = "Syncserver";
2024-11-08 18:23:40 +01:00
url = "https://sync.${domain}/";
2024-11-05 23:02:58 +01:00
}
2024-10-05 00:31:24 +02:00
{
name = "Photos";
2024-11-08 18:23:40 +01:00
url = "https://immich.${domain}/";
2024-10-05 00:31:24 +02:00
}
{
name = "Translate";
2024-11-08 18:23:40 +01:00
url = "https://trans.${domain}/";
}
{
name = "invidious";
url = "https://yt.${domain}/";
2024-10-05 00:31:24 +02:00
}
{
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/";
}
];
}
];
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
}