From 9e79ab06b109cca048c942cb8c4b926c0397f58a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sun, 13 Jun 2021 17:43:51 +0100 Subject: [PATCH] email, broader binding for restic server --- nixos/boxes/brix/restic-server.nix | 1 - nixos/email-accounts.nix | 49 ++++++++++++++++++++++++++++-- 2 files changed, 47 insertions(+), 3 deletions(-) diff --git a/nixos/boxes/brix/restic-server.nix b/nixos/boxes/brix/restic-server.nix index 8eb638ab..da057c66 100644 --- a/nixos/boxes/brix/restic-server.nix +++ b/nixos/boxes/brix/restic-server.nix @@ -7,7 +7,6 @@ dataDir = "/data/restic"; appendOnly = true; prometheus = true; - listenAddress = "brix.cyplo.github.beta.tailscale.net:8000"; extraFlags = [ "--no-auth" ]; }; diff --git a/nixos/email-accounts.nix b/nixos/email-accounts.nix index 7415d4a3..4bf67ed7 100644 --- a/nixos/email-accounts.nix +++ b/nixos/email-accounts.nix @@ -3,15 +3,60 @@ home-manager.users.cyryl = {...}: { accounts.email.accounts.cyplo = { primary = true; - address = "cyplO@cyplo.dev"; + address = "cyplo@cyplo.dev"; aliases = [ "cyplo@cyplo.net" ]; realName = "Cyryl PÅ‚otnicki"; userName = "cyplo"; + imap = { + host = "127.0.0.1"; + port = 1143; + tls.enable = false; + }; + smtp = { + host = "127.0.0.1"; + port = 1025; + tls.enable = false; + }; + notmuch.enable = true; + astroid.enable = true; + msmtp.enable = true; + passwordCommand = "${pkgs.pass}/bin/pass proton-bridge"; + mbsync = { + enable = true; + create = "maildir"; + }; + folders = { + drafts = "drafts"; + inbox = "inbox"; + sent = "sent"; + trash = "trash"; + }; + }; + + programs.mbsync.enable = true; + programs.msmtp.enable = true; + + programs.notmuch = { + enable = true; + hooks = { + preNew = "mbsync --all"; + }; + }; + programs.astroid = { + enable = true; + pollScript = "${pkgs.notmuch}/bin/notmuch new"; + extraConfig = { + attachments = { + external_open_cmd = "${pkgs.xdg_utils}/bin/xdg-open"; + }; + }; + }; + programs.alot = { + enable = true; }; home.packages = with pkgs; [ hydroxide - thunderbird ]; systemd.user.services."hydroxide" = {