feat: init librewolf as default browser

This commit is contained in:
notohh 2023-04-03 07:29:35 -04:00
parent 8a736f1ddc
commit 74c5390b20
Signed by: notohh
GPG key ID: BD47506D475EE86D
2 changed files with 42 additions and 1 deletions

View file

@ -0,0 +1,41 @@
{
...
}: {
programs.librewolf = {
enable = true;
settings = {
"webgl.disabled" = false;
"privacy.resistFingerprinting" = false;
"browser.warnOnQuitShortcut" = false;
"identity.fxaccounts.enabled" = false;
"browser.sessionstore.resume_from_crash" = true;
"privacy.resistFingerprinting.letterboxing" = false;
"privacy.clearOnShutdown.history" = false;
"privacy.clearOnShutdown.downloads" = true;
"privacy.clearOnShutdown.cookies" = false;
"security.OCSP.require" = false;
"browser.toolbars.bookmarks.visibility" = "always";
"browser.startup.homepage" = "http://dashboard.lab/";
};
};
# enable librewolf as the default browser, with some extra config
xdg.mimeApps = {
enable = true;
defaultApplications = {
"x-scheme-handler/discord-409416265891971072" = ["discord-409416265891971072.desktop"];
"x-scheme-handler/discord-402572971681644545" = ["discord-402572971681644545.desktop"];
"x-scheme-handler/discord-696343075731144724" = ["discord-696343075731144724.desktop"];
"x-scheme-handler/http" = ["librewolf.desktop"];
"x-scheme-handler/https" = ["librewolf.desktop"];
"x-scheme-handler/chrome" = ["librewolf.desktop"];
"text/html" = ["librewolf.desktop"];
"application/x-extension-htm" = ["librewolf.desktop"];
"application/x-extension-html" = ["librewolf.desktop"];
"application/x-extension-shtml" = ["librewolf.desktop"];
"application/xhtml+xml" = ["librewolf.desktop"];
"application/x-extension-xhtml" = ["librewolf.desktop"];
"application/x-extension-xht" = ["librewolf.desktop"];
};
};
}

View file

@ -4,6 +4,7 @@
imports = [
../../home
../../home/librewolf
../../home/wezterm
../../home/zathura
../../home/gtk
@ -23,7 +24,6 @@ imports = [
username = "notoh";
homeDirectory = "/home/notoh";
packages = with pkgs; [
firefox
chromium
bitwarden
discord