Files
nixos/utils/modules/sway/thunderbird.nix

40 lines
1.1 KiB
Nix

{ pkgs, ... }:
let
thunderbirdWorkDesktopItem = pkgs.makeDesktopItem {
name = "thunderbird-work";
desktopName = "Thunderbird Work";
icon = "thunderbird";
exec = "thunderbird -P Work";
};
thunderbirdCloonarDesktopItem = pkgs.makeDesktopItem {
name = "thunderbird-cloonar";
desktopName = "Thunderbird Cloonar";
icon = "thunderbird";
exec = "thunderbird -P Cloonar";
};
in
{
nixpkgs.overlays = [
(self: super:
{
thunderbird-bin-unwrapped = super.thunderbird-bin-unwrapped.overrideAttrs ( old: rec {
version = "112.0b7";
name = "thunderbird-bin";
src = super.fetchurl {
url = "https://download-installer.cdn.mozilla.net/pub/thunderbird/releases/${version}/linux-x86_64/en-US/thunderbird-${version}.tar.bz2";
sha256 = "30d23df34834096a79261439d5ea6d78d44921f0218893f100596ee6296cd806";
};
});
}
)
];
environment.systemPackages = [
# (import ../../pkgs/thunderbird.nix)
pkgs.thunderbird-bin-unwrapped
thunderbirdWorkDesktopItem
thunderbirdCloonarDesktopItem
];
}