nixos/modules/desktop/browsers/firefox/default.nix

28 lines
516 B
Nix
Raw Normal View History

{
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 = {
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
config = mkIf cfg.enable {
2023-07-31 18:14:58 +04:00
programs.firefox = {
enable = true;
preferences = {
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
"browser.compactmode.show" = true;
2023-07-31 18:14:58 +04:00
};
};
};
}