Skip to content

Commit

Permalink
add thunderbird module
Browse files Browse the repository at this point in the history
  • Loading branch information
mardukpill committed Jul 17, 2024
1 parent 3acb54d commit 01ca2f0
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
2 changes: 0 additions & 2 deletions homes/x86_64-linux/mike@blade/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ in
vesktop
keepassxc

dotties.bluemail-with-gpu
firefox
thunderbird

playerctl

Expand Down
28 changes: 28 additions & 0 deletions modules/nixos/apps/thunderbird/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
lib,
namespace,
config,
...
}:
let
inherit (lib) mkIf mkOption;
inherit (lib.${namespace}) mkOpt;

cfg = config.${namespace}.apps.thunderbird;
in
{
options.${namespace}.apps.thunderbird = {
enable = mkOpt lib.types.bool false "whether to enable thunderbird mail client.";
exchangeSupport = mkOpt lib.types.bool true "whether to enable exchange support for mail clients";
};

config = mkIf cfg.enable {
programs.thunderbird.enable = true;

services.davmail = mkIf cfg.exchangeSupport {
enable = true;
url = "https://outlook.office365.com/EWS/Exchange.asmx";
};
};

}
1 change: 1 addition & 0 deletions systems/x86_64-linux/blade/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ in

apps = {
thunar = enabled;
thunderbird = enabled;
};

dms.sddm = {
Expand Down

0 comments on commit 01ca2f0

Please sign in to comment.