feat: init librewolf as default browser
This commit is contained in:
parent
8a736f1ddc
commit
74c5390b20
2 changed files with 42 additions and 1 deletions
41
home/librewolf/default.nix
Normal file
41
home/librewolf/default.nix
Normal 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"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
../../home
|
../../home
|
||||||
|
../../home/librewolf
|
||||||
../../home/wezterm
|
../../home/wezterm
|
||||||
../../home/zathura
|
../../home/zathura
|
||||||
../../home/gtk
|
../../home/gtk
|
||||||
|
@ -23,7 +24,6 @@ imports = [
|
||||||
username = "notoh";
|
username = "notoh";
|
||||||
homeDirectory = "/home/notoh";
|
homeDirectory = "/home/notoh";
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
firefox
|
|
||||||
chromium
|
chromium
|
||||||
bitwarden
|
bitwarden
|
||||||
discord
|
discord
|
||||||
|
|
Loading…
Reference in a new issue