blackadder: sync my gmail account (one-way)
parent
7e2a85bc43
commit
738a636ae1
|
@ -171,6 +171,23 @@ in {
|
||||||
XCURSOR_PATH = "${pkgs.gnome3.adwaita-icon-theme}/share/icons";
|
XCURSOR_PATH = "${pkgs.gnome3.adwaita-icon-theme}/share/icons";
|
||||||
XDG_CURRENT_DESKTOP = "sway";
|
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 = {
|
systemd.user.services.gebaard = {
|
||||||
Unit = {
|
Unit = {
|
||||||
|
|
|
@ -146,7 +146,7 @@ in {
|
||||||
services.playerctld.enable = true;
|
services.playerctld.enable = true;
|
||||||
home.packages = (with pkgs; [
|
home.packages = (with pkgs; [
|
||||||
## utils
|
## utils
|
||||||
# afew
|
afew # mail
|
||||||
broot
|
broot
|
||||||
fd
|
fd
|
||||||
gcr.out
|
gcr.out
|
||||||
|
|
Loading…
Reference in New Issue