aboutsummaryrefslogtreecommitdiff
path: root/users/fcuny/trusted/email.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-04-08 17:00:00 -0700
committerFranck Cuny <franck@fcuny.net>2022-04-08 17:00:00 -0700
commit364520a9eb1d10f3a8af0b1364ff1498221ddc5a (patch)
tree4e212f28e4467a59d55f4508a7432a8d6dc6ca2e /users/fcuny/trusted/email.nix
parentcarmel: configure the desktop properly (diff)
downloadinfra-364520a9eb1d10f3a8af0b1364ff1498221ddc5a.tar.gz
remove old 'trusted' modules
All of them are now under home/
Diffstat (limited to 'users/fcuny/trusted/email.nix')
-rw-r--r--users/fcuny/trusted/email.nix70
1 files changed, 0 insertions, 70 deletions
diff --git a/users/fcuny/trusted/email.nix b/users/fcuny/trusted/email.nix
deleted file mode 100644
index 3bb6bd2..0000000
--- a/users/fcuny/trusted/email.nix
+++ /dev/null
@@ -1,70 +0,0 @@
-{ pkgs, config, lib, ... }:
-
-{
- accounts.email = {
- maildirBasePath = "${config.home.homeDirectory}/.mail";
- accounts = {
- Fastmail = rec {
- primary = true;
- address = "franck@fcuny.net";
- userName = address;
- realName = "Franck Cuny";
- aliases = [ "franck.cuny@gmail.com" ];
- passwordCommand = "pass email/imap.fastmail.com";
- imap.host = "imap.fastmail.com";
- mbsync = {
- enable = true;
- create = "maildir";
- expunge = "both";
- extraConfig.channel.CopyArrivalDate = "yes";
- };
- notmuch.enable = true;
- };
- };
- };
-
- programs.mbsync.enable = true;
-
- programs.afew = {
- enable = true;
- extraConfig = ''
- [SpamFilter]
- [KillThreadsFilter]
- [ArchiveSentMailsFilter]
- [InboxFilter]
- '';
- };
-
- programs.notmuch = {
- enable = true;
- maildir.synchronizeFlags = true;
- new.tags = [ "unread" "inbox" ];
- new.ignore = [ "Trash" ];
- search.excludeTags = [ "spam" "deleted" ];
- hooks = {
- postNew = "${config.home.profileDirectory}/bin/afew -v --tag --new";
- };
- };
-
- systemd.user.services.mbsync = {
- Unit = { Description = "mbsync synchronization"; };
- Service = {
- Type = "oneshot";
- Environment = [
- "PASSWORD_STORE_DIR=${config.programs.password-store.settings.PASSWORD_STORE_DIR}"
- "NOTMUCH_CONFIG=${config.xdg.configHome}/notmuch/notmuchrc"
- ];
- ExecStart = "${pkgs.isync}/bin/mbsync -a";
- ExecStartPost = "${pkgs.notmuch}/bin/notmuch new --quiet";
- };
- };
-
- systemd.user.timers.mbsync = {
- Unit = { Description = "mbsync synchronization"; };
- Timer = {
- OnBootSec = "30";
- OnUnitActiveSec = "5m";
- };
- Install = { WantedBy = [ "timers.target" ]; };
- };
-}