summaryrefslogtreecommitdiff
path: root/hm/soft/email.nix
diff options
context:
space:
mode:
authoradikro <adikro@disroot.org>2026-04-04 15:19:42 +0200
committeradikro <adikro@disroot.org>2026-04-04 15:19:42 +0200
commit156b4f2c45321bd6cbb63097105c31baa955bfc6 (patch)
treecc639e5a8f3e2859db46f41c28747bb162f7a4ba /hm/soft/email.nix
parent4ff17027412da68da76a988f3d4d6d633e2ebb91 (diff)
moving away from home manager
Diffstat (limited to 'hm/soft/email.nix')
-rw-r--r--hm/soft/email.nix57
1 files changed, 11 insertions, 46 deletions
diff --git a/hm/soft/email.nix b/hm/soft/email.nix
index 869c4ed..33c8f34 100644
--- a/hm/soft/email.nix
+++ b/hm/soft/email.nix
@@ -1,53 +1,18 @@
-{
- config,
- lib,
- pkgs,
- ...
-}:
+{ config, lib, ... }:
let
cfg = config.hm.soft.email;
in
{
- options.hm.soft.email = {
- thunderbird.enable = lib.mkEnableOption "thunderbird config";
- 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;
+ options.hm.soft.email.thunderbird.enable = lib.mkEnableOption "thunderbird config";
+ config = lib.mkIf cfg.thunderbird.enable {
+ programs.thunderbird = {
+ enable = true;
+ profiles.main = {
+ isDefault = true;
+ settings = {
+ "network.proxy.type" = 0;
};
-
- thunderbird.enable = cfg.thunderbird.enable;
};
- }
- (lib.mkIf cfg.thunderbird.enable {
- programs.thunderbird = {
- enable = true;
- profiles.main = {
- isDefault = true;
- settings = {
- "network.proxy.type" = 0;
- };
- };
- };
- })
-
- (lib.mkIf cfg.evolution.enable {
- home.packages = [ pkgs.evolution ];
- })
- ];
+ };
+ };
}