834 current 2024-07-16 15:36:47 24.11.20240716.f4fd4b5 6.9.8-zen1 *

This commit is contained in:
zack 2024-07-16 15:36:54 -04:00
parent b603fc5054
commit 4171a22fd3
No known key found for this signature in database
GPG key ID: 5F873416BCF59F35
3 changed files with 72 additions and 35 deletions

View file

@ -0,0 +1,36 @@
{
lib,
config,
pkgs,
...
}:
with lib;
with lib.custom; let
cfg = config.apps.web.librewolf;
in {
options.apps.web.librewolf = with types; {
enable = mkBoolOpt false "Enable librewolf";
setDefault = mkBoolOpt false "Set Librewolf to default";
};
config = mkIf cfg.enable {
xdg.mimeApps.defaultApplications = mkIf cfg.setDefault {
"text/html" = "librewolf.desktop";
"x-scheme-handler/http" = "librewolf.desktop";
"x-scheme-handler/https" = "librewolf.desktop";
"image/png" = "feh.desktop";
};
programs.librewolf = {
enable = true;
settings = {
"webgl.disabled" = false;
"privacy.resistFingerprinting" = false;
"privacy.clearOnShutdown.history" = false;
"privacy.clearOnShutdown.cookies" = false;
"network.cookie.lifetimePolicy" = 0;
};
};
};
}