Adjust imapnotify command
Make davmail start after hyprland-session.target
This commit is contained in:
parent
b8a70a625d
commit
c09c68ddfa
|
@ -47,7 +47,7 @@
|
|||
imapnotify = {
|
||||
enable = lib.mkDefault accountEnabled;
|
||||
boxes = [ "INBOX" ];
|
||||
onNotify = "${pkgs.isync}/bin/mbsync --pull proton:INBOX";
|
||||
onNotify = "${pkgs.isync}/bin/mbsync --pull-new proton:INBOX";
|
||||
onNotifyPost =
|
||||
"${pkgs.libnotify}/bin/notify-send 'Proton: New mail arrived'";
|
||||
extraConfig = {
|
||||
|
@ -88,7 +88,7 @@
|
|||
imapnotify = {
|
||||
enable = lib.mkDefault accountEnabled;
|
||||
boxes = [ "INBOX" ];
|
||||
onNotify = "${pkgs.isync}/bin/mbsync --pull icloud:INBOX";
|
||||
onNotify = "${pkgs.isync}/bin/mbsync --pull-new icloud:INBOX";
|
||||
onNotifyPost =
|
||||
"${pkgs.libnotify}/bin/notify-send 'Proton: New mail arrived'";
|
||||
extraConfig.wait = 300;
|
||||
|
@ -128,7 +128,7 @@
|
|||
imapnotify = {
|
||||
enable = lib.mkDefault accountEnabled;
|
||||
boxes = [ "INBOX" ];
|
||||
onNotify = "${pkgs.isync}/bin/mbsync --pull ukaea:INBOX";
|
||||
onNotify = "${pkgs.isync}/bin/mbsync --pull-new ukaea:INBOX";
|
||||
onNotifyPost =
|
||||
"${pkgs.libnotify}/bin/notify-send 'Proton: New mail arrived'";
|
||||
extraConfig = {
|
||||
|
@ -210,8 +210,8 @@
|
|||
davmail = lib.mkIf emailAccounts.ukaea.mbsync.enable {
|
||||
Unit = {
|
||||
Description = "Davmail server";
|
||||
Wants = [ "network-online.target" "graphical-session.target" ];
|
||||
After = [ "network-online.target" "graphical-session.target" ];
|
||||
Wants = [ "network-online.target" "hyprland-session.target" ];
|
||||
After = [ "network-online.target" "hyprland-session.target" ];
|
||||
};
|
||||
Service = {
|
||||
Environment = [ "PATH=/run/current-system/sw/bin/:$PATH" ];
|
||||
|
|
Loading…
Reference in a new issue