mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-12 19:27:17 +00:00
run offlineimap automatically
This commit is contained in:
parent
e466b21416
commit
1d5b8c419d
2 changed files with 15 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
|||
{ config, pkgs, inputs, ... }:
|
||||
|
||||
let
|
||||
passCmd = path: "${pkgs.pass}/bin/pass ${path}";
|
||||
passCmd = address: "${pkgs.python310Packages.keyring}/bin/keyring get login email(${address})";
|
||||
generalAccount = address: {
|
||||
inherit address;
|
||||
userName = address;
|
||||
|
@ -15,7 +15,7 @@ let
|
|||
enable = true;
|
||||
useStartTls = true;
|
||||
};
|
||||
passwordCommand = passCmd "email/${address}";
|
||||
passwordCommand = passCmd address;
|
||||
};
|
||||
|
||||
gmailAccount = address: ({
|
||||
|
|
|
@ -15,8 +15,18 @@
|
|||
UserName = "${config.home.username}";
|
||||
ProcessType = "Adaptive";
|
||||
StandardOutPath = "${config.home.homeDirectory}/Library/Logs/emacs-stdout.log";
|
||||
StandardErrorPath =
|
||||
"${config.home.homeDirectory}/Library/Logs/emacs-stderr.log";
|
||||
StandardErrorPath = "${config.home.homeDirectory}/Library/Logs/emacs-stderr.log";
|
||||
};
|
||||
};
|
||||
|
||||
agents.offlineimap = {
|
||||
enable = true;
|
||||
config = {
|
||||
ProgramArguments = [ "${pkgs.offlineimap}/bin/offlineimap" ];
|
||||
UserName = "${config.home.username}";
|
||||
StartInterval = 900;
|
||||
StandardOutPath = "${config.home.homeDirectory}/Library/Logs/offlineimap-stdout.log";
|
||||
StandardErrorPath = "${config.home.homeDirectory}/Library/Logs/offlineimap-stderr.log";
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -30,8 +40,7 @@
|
|||
UserName = "${config.home.username}";
|
||||
StartInterval = 3600;
|
||||
StandardOutPath = "${config.home.homeDirectory}/Library/Logs/rss2email-stdout.log";
|
||||
StandardErrorPath =
|
||||
"${config.home.homeDirectory}/Library/Logs/rss2email-stderr.log";
|
||||
StandardErrorPath = "${config.home.homeDirectory}/Library/Logs/rss2email-stderr.log";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue