Files
nixos-config/modules/home/librewolf.nix

46 lines
1.1 KiB
Nix

{ pkgs, ... }:
{
programs.librewolf = {
enable = true;
profiles.default = {
isDefault = true;
extensions.packages = with pkgs.nur.repos.rycee.firefox-addons; [
vimium
bitwarden
multi-account-containers
violentmonkey # Tampermonkey alternative
darkreader
foxyproxy-standard
gesturefy
stylebot-web
re-enable-right-click
temporary-containers
];
settings = {
# Hardware video decoding (AMD VA-API).
"media.ffmpeg.vaapi.enabled" = true;
# Don't nag about not being the default browser.
"browser.shell.checkDefaultBrowser" = false;
# Dark theme
"extensions.activeThemeID" = "firefox-compact-dark@mozilla.org";
};
};
};
xdg.mimeApps = {
enable = true;
defaultApplications = {
"text/html" = "librewolf.desktop";
"x-scheme-handler/http" = "librewolf.desktop";
"x-scheme-handler/https" = "librewolf.desktop";
"x-scheme-handler/about" = "librewolf.desktop";
"x-scheme-handler/unknown" = "librewolf.desktop";
};
};
home.sessionVariables.BROWSER = "librewolf";
}