From 233e5fb7d43a0736857ee6b9f74967f03b73837c Mon Sep 17 00:00:00 2001 From: adikro Date: Tue, 10 Feb 2026 22:27:11 +0100 Subject: ... --- hm/soft/email.nix | 38 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) (limited to 'hm/soft/email.nix') diff --git a/hm/soft/email.nix b/hm/soft/email.nix index d60f802..869c4ed 100644 --- a/hm/soft/email.nix +++ b/hm/soft/email.nix @@ -1,4 +1,9 @@ -{ config, lib, pkgs, ... }: +{ + config, + lib, + pkgs, + ... +}: let cfg = config.hm.soft.email; in @@ -8,8 +13,37 @@ in evolution.enable = lib.mkEnableOption "evolution config"; }; config = lib.mkMerge [ + { + accounts.email.accounts.disroot = { + primary = true; + address = "adikro@disroot.org"; + userName = "adikro@disroot.org"; + realName = "adi"; + + imap = { + host = "disroot.org"; + port = 993; + tls.enable = true; + }; + smtp = { + host = "disroot.org"; + port = 465; + tls.enable = true; + }; + + thunderbird.enable = cfg.thunderbird.enable; + }; + } (lib.mkIf cfg.thunderbird.enable { - programs.thunderbird.enable = true; + programs.thunderbird = { + enable = true; + profiles.main = { + isDefault = true; + settings = { + "network.proxy.type" = 0; + }; + }; + }; }) (lib.mkIf cfg.evolution.enable { -- cgit v1.3