2023-07-09 02:03:46 +04:00
|
|
|
{
|
2023-08-11 02:01:03 +04:00
|
|
|
options,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
cfg = config.modules.desktop.browsers.firefox;
|
|
|
|
in {
|
2023-07-09 02:06:28 +04:00
|
|
|
options.modules.desktop.browsers.firefox = {
|
2023-07-09 02:03:46 +04:00
|
|
|
enable = mkEnableOption false;
|
|
|
|
};
|
|
|
|
|
2023-07-31 18:28:20 +04:00
|
|
|
# TODO add this
|
|
|
|
# https://github.com/Dook97/firefox-qutebrowser-userchrome
|
2023-08-11 02:01:03 +04:00
|
|
|
|
2023-07-09 02:03:46 +04:00
|
|
|
config = mkIf cfg.enable {
|
2023-07-31 18:14:58 +04:00
|
|
|
programs.firefox = {
|
|
|
|
enable = true;
|
|
|
|
preferences = {
|
2023-07-31 18:15:48 +04:00
|
|
|
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
|
|
|
"browser.compactmode.show" = true;
|
2023-07-31 18:14:58 +04:00
|
|
|
};
|
|
|
|
};
|
2023-07-09 02:03:46 +04:00
|
|
|
};
|
|
|
|
}
|