This commit is contained in:
Evie Litherland-Smith 2023-10-26 16:12:04 +01:00
commit 25628104a7
7 changed files with 91 additions and 69 deletions

View file

@ -9,7 +9,7 @@ sent_tag = sent
[FolderNameFilter]
folder_explicit_list = Proton/Archive Proton/Sent Proton/Trash iCloud/Archive 'iCloud/Deleted Messages' 'iCloud/Sent Messages' Outlook/Archive Outlook/Trash Outlook/Sent
folder_transforms = Drafts:draft Sent:sent 'Sent Messages':sent Trash:deleted 'Deleted Messages':deleted
folder_transforms = Archive:archive Drafts:draft Sent:sent 'Sent Messages':sent Trash:deleted 'Deleted Messages':deleted
folder_lowercases = true
maildir_separator = /
@ -23,6 +23,16 @@ message = Untagged inbox from archive
query = tag:archive AND tag:inbox
tags = -inbox
[Filter.3]
message = Tag ReqCo emails
query = from:reqco@jet.uk
tags = +reqco
[Filter.4]
message = Tag operations update emails
query = from:no-reply@jet.uk
tags = +operations
[MailMover]
folders = Proton/Inbox iCloud/Inbox Outlook/Inbox
rename = True

View file

@ -16,13 +16,16 @@
enable = true;
maildir.synchronizeFlags = true;
new.tags = [ "new" ];
hooks.postNew = ''
if [ $(${pkgs.notmuch}/bin/notmuch count is:new) -gt 0 ]; then
${pkgs.libnotify}/bin/notify-send "Notmuch Email" "Unread emails in inbox"
fi
${pkgs.afew}/bin/afew --new --tag
${pkgs.afew}/bin/afew --move-mail
'';
hooks = {
preNew = "${pkgs.isync}/bin/mbsync inboxes";
postNew = ''
if [ $(${pkgs.notmuch}/bin/notmuch count is:new) -gt 0 ]; then
${pkgs.libnotify}/bin/notify-send "Notmuch Email" "Unread emails in inbox"
fi
${pkgs.afew}/bin/afew --new --tag
${pkgs.afew}/bin/afew --move-mail
'';
};
};
afew = {
enable = true;
@ -32,7 +35,7 @@
services = {
mbsync = {
enable = true;
frequency = "*:0/15";
frequency = "*:0/30";
postExec = "${pkgs.notmuch}/bin/notmuch new";
};
imapnotify.enable = true;
@ -65,8 +68,7 @@
imapnotify = {
enable = lib.mkDefault accountEnabled;
boxes = [ "INBOX" ];
onNotify = "${pkgs.isync}/bin/mbsync proton";
onNotifyPost = "${pkgs.notmuch}/bin/notmuch new";
onNotify = "${pkgs.notmuch}/bin/notmuch new";
extraConfig = {
wait = 300;
tls = false;
@ -105,8 +107,7 @@
imapnotify = {
enable = lib.mkDefault accountEnabled;
boxes = [ "INBOX" ];
onNotify = "${pkgs.isync}/bin/mbsync icloud";
onNotifyPost = "${pkgs.notmuch}/bin/notmuch new";
onNotify = "${pkgs.notmuch}/bin/notmuch new";
extraConfig.wait = 300;
};
mbsync = {
@ -144,8 +145,7 @@
imapnotify = {
enable = lib.mkDefault accountEnabled;
boxes = [ "INBOX" ];
onNotify = "${pkgs.isync}/bin/mbsync outlook";
onNotifyPost = "${pkgs.notmuch}/bin/notmuch new";
onNotify = "${pkgs.notmuch}/bin/notmuch new";
extraConfig = {
wait = 300;
tls = false;

View file

@ -9,9 +9,19 @@
};
services.git-sync = {
enable = true;
repositories.org = {
path = "${config.home.homeDirectory}/Org";
uri = "git+https://git.xenia.me.uk/xenia/Org.git";
repositories = with config.home; {
org = {
path = "${homeDirectory}/Org";
uri = "git+https://git.xenia.me.uk/xenia/Org.git";
};
notmuch = {
path = "${homeDirectory}/.notmuch";
uri = "git+https://git.xenia.me.uk/xenia/notmuch.git";
};
elfeed = {
path = "${homeDirectory}/.elfeed";
uri = "git+https://git.xenia.me.uk/xenia/elfeed.git";
};
};
};
home = {

View file

@ -9,8 +9,10 @@
(".*@icloud.com" . "iCloud/Sent")
(".*@ukaea.uk" . "Outlook/Sent")
(".*@jet.uk" . "Outlook/Sent"))
notmuch-indicator-refresh-count 60
notmuch-indicator-args '((:terms "tag:unread and tag:inbox" :label "󰮒 ")))
notmuch-indicator-args '((:terms "tag:unread and tag:inbox" :label "󰮒 "))
notmuch-indicator-force-refresh-commands '(notmuch-refresh-this-buffer
notmuch-refresh-all-buffers
notmuch-poll-and-refresh-this-buffer))
(require 'notmuch)
(require 'notmuch-indicator)
(notmuch-indicator-mode +1)

View file

@ -17,5 +17,4 @@
'';
systemPackages = with pkgs; [ openfortivpn ];
};
services.syncthing.settings.folders = { "Pictures".enable = false; };
}

View file

@ -22,18 +22,6 @@ in {
"I366QNQ-D3FTDRX-RNOTXMW-YITZXOF-DSCDMQD-63Q72LI-ME2Y4HZ-T34RMQK";
};
folders = {
"Elfeed" = {
inherit devices;
id = "hnnxy-lb5af";
path = "${dataDir}/.elfeed";
ignorePerms = true;
};
"Notmuch" = {
inherit devices;
id = "yiaiy-xrnse";
path = "${dataDir}/.notmuch";
ignorePerms = true;
};
"Pictures" = {
inherit devices;
id = "ziuj8-rm6dn";

View file

@ -75,16 +75,21 @@
ManagedBookmarks = [
{ toplevel_name = "Standard Bookmarks"; }
{
name = "Config Repo";
url = "https://git.xenia.me.uk/xenia/nixos";
}
{
name = "WhatsApp Web";
url = "https://web.whatsapp.com/";
}
{
name = "Discord";
url = "https://discord.com/app";
name = "Pins";
children = [
{
name = "ntfy.sh";
url = "https://ntfy.xenia.me.uk/";
}
{
name = "WhatsApp Web";
url = "https://web.whatsapp.com/";
}
{
name = "Discord";
url = "https://discord.com/app";
}
];
}
{
name = "Server";
@ -97,22 +102,35 @@
name = "Gitea";
url = "https://git.xenia.me.uk";
}
{
name = "Grafana Dashboard";
url = "https://status.xenia.me.uk";
}
{
name = "ntfy.sh";
url = "https://ntfy.xenia.me.uk";
}
{
name = "AdGuard Home";
url = "https://guard.xenia.me.uk";
}
{
name = "Grafana Dashboard";
url = "https://status.xenia.me.uk";
}
{
name = "Traefik";
url = "https://traefik.xenia.me.uk";
}
{
name = "ntfy.sh topics";
children = [
{
name = "Emacs";
url = "https://ntfy.xenia.me.uk/UhrNGphnSKCpCnk8";
}
{
name = "JET Pulse Notifications";
url = "https://ntfy.xenia.me.uk/jet_pulse_notifications";
}
{
name = "MAST-U Pulse Notifications";
url = "https://ntfy.xenia.me.uk/mast_u_pulse_notifications";
}
];
}
];
}
{
@ -133,16 +151,24 @@
];
}
{
name = "Docs";
name = "Docs and Repos";
children = [
{
name = "Config";
url = "https://git.xenia.me.uk/xenia/nixos";
}
{
name = "Crafted Emacs";
url = "https://github.com/SystemCrafters/crafted-emacs";
}
{
name = "Awesome Hyprland";
url = "https://github.com/hyprland-community/awesome-hyprland";
}
{
name = "NixOS and Flakes";
url = "https://nixos-and-flakes.thiscute.world/";
}
{
name = "Crafted Emacs Repo";
url = "https://github.com/SystemCrafters/crafted-emacs";
}
{
name = "Nerd Fonts Cheat Sheet";
url = "https://www.nerdfonts.com/cheat-sheet";
@ -161,19 +187,6 @@
}
];
}
{
name = "Dev";
children = [
{
name = "GitHub";
url = "https://github.com";
}
{
name = "GitLab";
url = "https://gitlab.com";
}
];
}
];
NoDefaultBookmarks = true;
OfferToSaveLogins = false;