librewolf: Init
This is currently in testing, as qutebrowser has some severe drawbacks.
This commit is contained in:
parent
37219a1dd1
commit
c4b904d1af
|
@ -10,6 +10,7 @@
|
|||
./gpg.nix
|
||||
./gtk.nix
|
||||
./htop.nix
|
||||
./librewolf.nix
|
||||
./logitech.nix
|
||||
./mail
|
||||
./makemkv.nix
|
||||
|
|
31
users/simon/modules/librewolf.nix
Normal file
31
users/simon/modules/librewolf.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ config, lib, nixosConfig, ... }:
|
||||
let
|
||||
mkOverridesFile = prefs: ''
|
||||
// Generated by Home Manager.
|
||||
// Function taken from upstream home-manger,
|
||||
// modified to use pref instead of defaultPref.
|
||||
|
||||
${lib.concatStrings (lib.mapAttrsToList (name: value: ''
|
||||
pref("${name}", ${builtins.toJSON value});
|
||||
'') prefs)}
|
||||
'';
|
||||
in
|
||||
lib.mkIf nixosConfig.sbruder.gui.enable {
|
||||
programs.librewolf = {
|
||||
enable = true;
|
||||
settings = {
|
||||
"accessibility.force_disabled" = 1;
|
||||
"browser.uidensity" = 1; # more compact layout
|
||||
"identity.fxaccounts.enabled" = true;
|
||||
"middlemouse.paste" = false;
|
||||
"network.http.referer.XOriginPolicy" = 2;
|
||||
"privacy.clearOnShutdown.history" = false;
|
||||
"webgl.disabled" = false; # requires installing CanvasBlocker
|
||||
|
||||
#"privacy.resistFingerprinting.letterboxing" = true; # quite annoying
|
||||
};
|
||||
};
|
||||
|
||||
# overrides home-manager’s definition
|
||||
home.file.".librewolf/librewolf.overrides.cfg".text = lib.mkForce (mkOverridesFile config.programs.librewolf.settings);
|
||||
}
|
|
@ -197,6 +197,7 @@ in
|
|||
"2" = [
|
||||
{ app_id = "firefox"; }
|
||||
{ app_id = "org.qutebrowser.qutebrowser"; }
|
||||
{ class = "librewolf"; }
|
||||
{ class = "qutebrowser"; } # workaround for qutebrowser running under Xwayland
|
||||
#{ class="Chromium"; }
|
||||
];
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
enable = nixosConfig.sbruder.gui.enable;
|
||||
defaultApplications =
|
||||
let
|
||||
browser = "org.qutebrowser.qutebrowser.desktop";
|
||||
browser = "librewolf.desktop";
|
||||
in
|
||||
{
|
||||
"application/pdf" = "org.pwmt.zathura.desktop";
|
||||
|
|
Loading…
Reference in a new issue