nix-git/modules/firefox.nix

62 lines
1.7 KiB
Nix
Raw Normal View History

2023-09-11 13:05:48 +02:00
{ config, pkgs, ... }:
{
users.users.yoda = {
packages = with pkgs; [
firefox # Web browser
];
};
# Touch input with Firefox under X11.
environment.sessionVariables = {
MOZ_USE_XINPUT2 = "1";
};
2023-09-12 13:24:30 +02:00
home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
programs.firefox = {
enable = true;
profiles.default = {
isDefault = true;
settings = {};
2023-09-12 13:45:13 +02:00
search.default = "Startpage";
search.engines = {
"Amazon.de".metaData.hidden = true;
"Bing".metaData.hidden = true;
"Google".metaData.hidden = true;
"NixOS Wiki" = {
urls = [{ template = "https://nixos.wiki/index.php?search={searchTerms}"; }];
iconUpdateURL = "https://nixos.wiki/favicon.png";
updateInterval = 24 * 60 * 60 * 1000; # Every day
definedAliases = [ "@nw" ];
};
"Startpage" = {
urls = [{ template = "https://www.startpage.com/sp/search?query={searchTerms}"; }];
iconUpdateURL = "https://www.startpage.com/sp/cdn/favicons/favicon-32x32--default.png";
updateInterval = 24 * 60 * 60 * 1000; # Every day
definedAliases = [ "@sp" ];
};
};
2023-09-12 13:24:30 +02:00
# https://mipmip.github.io/home-manager-option-search/?query=firefox.profiles.%3Cname%3E.extensions
# https://nur.nix-community.org/repos/rycee/
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
ublock-origin
floccus
snowflake
simple-tab-groups
smart-referer
# noscript
# video-downloadhelper
decentraleyes
# or
#localcdn
];
};
};
};
2023-09-11 13:05:48 +02:00
}