{ config, lib, ... }: { imports = [ ./extensions.nix ./userjs.nix ]; config = lib.mkMerge [ { programs.thunderbird = { profiles.default = { isDefault = true; withExternalGnupg = true; }; }; } (lib.mkIf config.programs.thunderbird.enable { xdg.mimeApps.defaultApplications = { "x-scheme-handler/mailto" = [ "thunderbird.desktop" ]; "text/calendar" = [ "thunderbird.desktop" ]; "application/x-xpinstall" = [ "thunderbird.desktop" ]; }; }) ]; }