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

27 lines
516 B
Nix

{
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.modules.desktop.browsers.firefox;
in {
options.modules.desktop.browsers.firefox = {
enable = mkEnableOption false;
};
# TODO add this
# https://github.com/Dook97/firefox-qutebrowser-userchrome
config = mkIf cfg.enable {
programs.firefox = {
enable = true;
preferences = {
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
"browser.compactmode.show" = true;
};
};
};
}