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

24 lines
507 B
Nix
Raw Normal View History

2023-07-09 02:06:28 +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
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
};
};
};
}