This commit is contained in:
commit
95a533c876
451 changed files with 18255 additions and 0 deletions
43
modules/home/hyprland/applications/thunderbird/default.nix
Normal file
43
modules/home/hyprland/applications/thunderbird/default.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.wayland.windowManager.hyprland;
|
||||
app = cfg.applications.emailclient.default;
|
||||
desktop = "thunderbird.desktop";
|
||||
mimeTypes = [
|
||||
"message/rfc822"
|
||||
"x-scheme-handler/mailto"
|
||||
"text/calendar"
|
||||
"text/x-vcard"
|
||||
];
|
||||
associations =
|
||||
let
|
||||
genMimeAssociations = import ../genMimeAssociations.nix;
|
||||
in
|
||||
genMimeAssociations desktop mimeTypes;
|
||||
|
||||
inherit (lib) mkIf;
|
||||
in
|
||||
{
|
||||
config = mkIf (cfg.enable && app == "thunderbird") {
|
||||
home.packages = [ pkgs.thunderbird ];
|
||||
|
||||
# programs.thunderbird = {
|
||||
# enable = true;
|
||||
# profiles.default = {
|
||||
# isDefault = mkDefault true;
|
||||
# withExternalGnupg = mkDefault true;
|
||||
# };
|
||||
# };
|
||||
|
||||
xdg.mimeApps = {
|
||||
defaultApplications = associations;
|
||||
associations.added = associations;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue