nixos/modules/desktop/browsers/firefox/default.nix
2024-08-01 16:24:09 +04:00

29 lines
555 B
Nix

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