nixos-config/modules/programs/firefox.nix

169 lines
5.1 KiB
Nix

#
# Firefox Brower Emulator
#
{ pkgs, ... }:
{
#home.packages = [ pkgs.firefox-wayland ];
programs = {
firefox = {
enable = true;
package = pkgs.wrapFirefox pkgs.firefox-unwrapped {
forceWayland = true;
extraPolicies = {
ExtensionSettings = {};
};
};
profiles.kabbone = {
#id = 271987;
name = "kabbone";
isDefault = true;
settings = {
"media.ffmpeg.vaapi.enabled" = true;
"gfx.webrender.all" = true;
"browser.contentblocking.category" = "strict";
"browser.search.region" = "DE";
"extensions.active.ThemeID" = "dreamer-bold-colorway@mozilla.org";
"media.autoplay.default" = 0;
"security.enterprise_roots.enabled" = true;
"widget.gtk.overlay-scrollbars.enabled" = true;
"signon.rememberSignons" = false;
"extensions.formautofill.creditCards.enabled" = false;
"datareporting.healthreport.uploadEnabled" = false;
"browser.urlbar.placeholderName" = "DuckDuckGo";
"browser.urlbar.placeholderName.private" = "DuckDuckGo";
"browser.theme.toolbar-theme" = 0;
};
userChrome = ''
/* Hide tab bar in FF Quantum */
@-moz-document url("chrome://browser/content/browser.xul") {
#TabsToolbar {
visibility: collapse !important;
margin-bottom: 21px !important;
}
#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header {
visibility: collapse !important;
}
}
'';
search = {
engines = {
"Nix Packages" = {
urls = [{
template = "https://search.nixos.org/packages";
params = [
{ name = "type"; value = "packages"; }
{ name = "query"; value = "{searchTerms}"; }
];
}];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@np" ];
};
"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" ];
};
};
order = [ "DuckDuckGo" ];
default = "DuckDuckGo";
};
bookmarks = [
{
name = "Kabtop Nextcloud";
url = "https://cloud.kabtop.de/";
}
{
name = "Home Assistant";
url = "https://hass.home.opel-online.de/";
}
{
name = "Netflix";
url = "https://netflix.com/browse";
}
{
name = "YouTube";
url = "https://youtube.com/";
}
{
name = "Kicker";
url = "https://kicker.de/";
}
{
name = "Chilloutzone";
url = "https://chilloutzone.net/";
}
{
name = "myDealZ";
url = "https://mydealz.de/";
}
{
name = "Kabtop Git";
url = "https://git.kabtop.de/";
}
{
name = "Spotify";
url = "https://open.spotify.com/";
}
{
name = "Tech";
bookmarks = [
{
name = "Golem";
url = "https://golem.de/";
}
{
name = "Heise";
url = "https://heise.de/";
}
{
name = "Phoronix";
url = "https://phoronix.com/";
}
];
}
{
name = "Foren";
bookmarks = [
{
name = "Archlinux-en";
url = "https://archlinux.org/";
}
{
name = "Archlinux-ARM";
url = "https://archlinuxarm.org/";
}
{
name = "Archlinux-de";
url = "https://archlinux.de/";
}
];
}
];
};
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
h264ify
honey
keepassxc-browser
multi-account-containers
netflix-1080p
ublock-origin
sidebery
];
};
};
}