nix/home/firefox/default.nix

119 lines
3.9 KiB
Nix
Raw Normal View History

2024-07-24 19:34:09 +02:00
{ inputs, ... }:
2024-07-09 18:24:48 +02:00
{
2024-07-24 19:31:25 +02:00
imports = [
2024-07-24 19:34:09 +02:00
./user.nix
2024-07-24 19:31:25 +02:00
];
2024-07-09 18:24:48 +02:00
programs.firefox = {
enable = true;
profiles.joy = {
search.engines = {
"4get" = {
urls = [{
2024-07-12 17:08:03 +02:00
template = "https://4get.ch/web";
2024-07-09 18:24:48 +02:00
params = [
2024-07-12 17:08:03 +02:00
{ name = "s"; value = "{searchTerms}"; }
2024-07-09 18:24:48 +02:00
];
}];
2024-07-12 17:08:03 +02:00
definedAliases = [ "@4get" ];
2024-07-09 18:24:48 +02:00
};
};
search.force = true;
2024-07-12 17:08:03 +02:00
search.default = "4get";
2024-07-09 18:24:48 +02:00
2024-07-12 17:08:03 +02:00
bookmarks = [{
name = "Nix sites";
toolbar = true;
bookmarks = [
{ name = "Packages"; url = "https://search.nixos.org/packages?channel=unstable"; }
{ name = "Homemanager"; url = "https://nix-community.github.io/home-manager/options.xhtml"; }
{ name = "Stylix"; url = "https://stylix.danth.me/options/nixos.html"; }
2024-08-10 00:06:35 +02:00
{ name = "JOYGNU"; url = "https://joygnu.org/"; }
{ name = "Mail"; url = "https://mail.joygnu.org/"; }
2024-07-12 17:08:03 +02:00
{ name = "Server"; url = "https://avoro.eu/cp/clientarea.php?action=productdetails&id=27920"; }
{ name = "Domain"; url = "https://registrar.epik.com/domain-management/host-records"; }
{ name = "Translate"; url = "https://simplytranslate.org/"; }
{ name = "Syncthing"; url = "http://localhost:8384/"; }
{ name = "GitHub"; url = "https://github.com/"; }
{ name = "Codeberg"; url = "https://codeberg.org/"; }
{ name = "Zophar's Domain"; url = "https://www.zophar.net/music"; }
2024-07-15 20:30:05 +02:00
{ name = "Hyprland"; url = "https://wiki.hyprland.org/"; }
2024-07-20 14:33:01 +02:00
{ name = "Monkeytype"; url = "https://monkeytype.com/"; }
2024-08-02 11:00:11 +02:00
{ name = "piped"; url = "https://piped.video/feed/"; }
2024-07-12 17:08:03 +02:00
];
}];
2024-07-20 14:33:01 +02:00
extensions = with inputs.firefox-addons.packages."x86_64-linux"; [
ublock-origin
darkreader
libredirect
search-by-image
2024-08-09 14:17:02 +02:00
terms-of-service-didnt-read
2024-07-20 14:33:01 +02:00
decentraleyes
];
2024-07-09 18:24:48 +02:00
settings = {
"dom.security.https_only_mode" = true;
"browser.download.panel.shown" = true;
"identity.fxaccounts.enabled" = false;
"signon.rememberSignons" = false;
2024-07-12 17:08:03 +02:00
"browser.urlbar.pocket.featureGate" = false;
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
"browser.shell.checkDefaultBrowser" = false;
"browser.shell.defaultBrowserCheckCount" = 1;
"privacy.trackingprotection.enabled" = true;
2024-07-13 10:50:40 +02:00
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
2024-07-12 17:08:03 +02:00
"browser.uiCustomization.state" =
''
{
"placements": {
"widget-overflow-fixed-list": [],
"nav-bar": [
"back-button",
"forward-button",
"stop-reload-button",
"urlbar-container",
"downloads-button",
"ublock0_raymondhill_net-browser-action",
"addon_darkreader_org-browser-action",
"_testpilot-containers-browser-action"
],
"toolbar-menubar": [
"menubar-items"
],
"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-07-09 18:24:48 +02:00
2024-07-12 17:08:03 +02:00
};
2024-07-09 18:24:48 +02:00
};
};
}