email sync services
This commit is contained in:
parent
6c57a16a6a
commit
2bd357f1ae
|
@ -1,4 +1,4 @@
|
||||||
{inputs, ...}: {
|
{...}: {
|
||||||
imports = [
|
imports = [
|
||||||
./zsh
|
./zsh
|
||||||
./gtk
|
./gtk
|
||||||
|
@ -11,7 +11,6 @@
|
||||||
./alacritty
|
./alacritty
|
||||||
./hyprland
|
./hyprland
|
||||||
./hypridle
|
./hypridle
|
||||||
./neomutt
|
|
||||||
./newsboat
|
./newsboat
|
||||||
./dunst
|
./dunst
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
{pkgs, ...}: {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
mutt-wizard
|
|
||||||
neomutt
|
|
||||||
msmtp
|
|
||||||
curl
|
|
||||||
isync
|
|
||||||
pass
|
|
||||||
lynx
|
|
||||||
notmuch
|
|
||||||
abook
|
|
||||||
mpop
|
|
||||||
urlscan
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -1,21 +1,25 @@
|
||||||
{...}:{
|
{...}:
|
||||||
systemd.services.email-sync = {
|
|
||||||
description = "Service to sync emails";
|
{
|
||||||
|
systemd.services.mw-service = {
|
||||||
|
after = [ "network.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "mw -Y";
|
|
||||||
User = "joy";
|
User = "joy";
|
||||||
Group = "users";
|
ExecStart = "/run/current-system/sw/bin/mw -Y";
|
||||||
|
Environment = "PATH=/run/current-system/sw/bin:/usr/bin:/bin"; # Ensure all required paths are included
|
||||||
};
|
};
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
};
|
|
||||||
|
|
||||||
systemd.timers.email-sync = {
|
|
||||||
description = "Timer to run email sync every 10 minutes";
|
|
||||||
timerConfig = {
|
|
||||||
OnBootSec = "1min";
|
|
||||||
OnUnitActiveSec = "10min";
|
|
||||||
};
|
};
|
||||||
wants = [ "email-sync.service" ];
|
systemd.timers.mw-service-timer = {
|
||||||
unit = "email-sync.service";
|
timerConfig = {
|
||||||
};
|
OnBootSec = "5sec";
|
||||||
|
OnUnitActiveSec = "10sec";
|
||||||
|
AccuracySec = "1sec";
|
||||||
|
};
|
||||||
|
unitConfig = {
|
||||||
|
Wants = [ "mw-service.service" ];
|
||||||
|
After = [ "mw-service.service" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -49,6 +49,18 @@
|
||||||
networkmanagerapplet
|
networkmanagerapplet
|
||||||
ncdu
|
ncdu
|
||||||
git
|
git
|
||||||
|
#mutt
|
||||||
|
mutt-wizard
|
||||||
|
neomutt
|
||||||
|
msmtp
|
||||||
|
curl
|
||||||
|
isync
|
||||||
|
pass
|
||||||
|
lynx
|
||||||
|
notmuch
|
||||||
|
abook
|
||||||
|
mpop
|
||||||
|
urlscan
|
||||||
#office
|
#office
|
||||||
sent
|
sent
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue