blackadder: sync my gmail account (one-way)

auto-flake-update
Yorick van Pelt 2022-08-16 13:37:59 +02:00
parent 7e2a85bc43
commit 738a636ae1
Signed by: yorick
GPG Key ID: A36E70F9DC014A15
2 changed files with 18 additions and 1 deletions

View File

@ -171,6 +171,23 @@ in {
XCURSOR_PATH = "${pkgs.gnome3.adwaita-icon-theme}/share/icons";
XDG_CURRENT_DESKTOP = "sway";
};
# todo: use home-manager unit
systemd.user.services.gmi = {
Unit.ConditionPathExists = "/home/yorick/mail/account.gmail/.gmailieer.json";
Service = {
Type = "oneshot";
ExecStart = "/usr/bin/env bash -c 'gmi pull && notmuch new'";
WorkingDirectory = "/home/yorick/mail/account.gmail";
};
};
systemd.user.timers.gmi = {
Timer = {
OnActiveSec = "30m";
OnBootSec = "5m";
RandomizedDelaySec = 30;
};
Install.WantedBy = ["timers.target"];
};
systemd.user.services.gebaard = {
Unit = {

View File

@ -146,7 +146,7 @@ in {
services.playerctld.enable = true;
home.packages = (with pkgs; [
## utils
# afew
afew # mail
broot
fd
gcr.out