nixfleet/hmModules/firefox/default.nix
Andrea Ciceri a394b9cefd
All checks were successful
/ test (push) Successful in 32s
Reformat everything
2024-09-20 11:37:17 +02:00

49 lines
1.2 KiB
Nix

{
pkgs,
username,
...
}:
{
programs.firefox = {
enable = true;
package = pkgs.wrapFirefox pkgs.firefox-unwrapped {
extraPolicies = {
ExtensionSettings = { };
};
nativeMessagingHosts = [ pkgs.tridactyl-native ];
};
profiles.${username} = {
settings = {
"browser.startup.homepage" = "https://google.it";
"browser.search.region" = "IT";
"browser.search.isUS" = false;
"distribution.searchplugins.defaultLocale" = "it-IT";
"general.useragent.locale" = "it-IT";
"browser.bookmarks.showMobileBookmarks" = true;
"browser.download.folderList" = 2;
"browser.download.lastDir" = "/home/${username}/Downloads/";
"browser.shell.checkDefaultBrowser" = false;
};
search.force = true;
search.engines = {
"Searx" = {
urls = [
{
template = "https://search.aciceri.dev/search";
params = [
{
name = "q";
value = "{searchTerms}";
}
];
}
];
};
};
};
};
home.sessionVariables = {
MOZ_ENABLE_WAYLAND = 1;
NIXOS_OZONE_WL = 1;
};
}