mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-13 19:57:19 +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, ... }:
|
{ config, pkgs, inputs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
passCmd = path: "${pkgs.pass}/bin/pass ${path}";
|
passCmd = address: "${pkgs.python310Packages.keyring}/bin/keyring get login email(${address})";
|
||||||
generalAccount = address: {
|
generalAccount = address: {
|
||||||
inherit address;
|
inherit address;
|
||||||
userName = address;
|
userName = address;
|
||||||
|
@ -15,7 +15,7 @@ let
|
||||||
enable = true;
|
enable = true;
|
||||||
useStartTls = true;
|
useStartTls = true;
|
||||||
};
|
};
|
||||||
passwordCommand = passCmd "email/${address}";
|
passwordCommand = passCmd address;
|
||||||
};
|
};
|
||||||
|
|
||||||
gmailAccount = address: ({
|
gmailAccount = address: ({
|
||||||
|
|
|
@ -15,8 +15,18 @@
|
||||||
UserName = "${config.home.username}";
|
UserName = "${config.home.username}";
|
||||||
ProcessType = "Adaptive";
|
ProcessType = "Adaptive";
|
||||||
StandardOutPath = "${config.home.homeDirectory}/Library/Logs/emacs-stdout.log";
|
StandardOutPath = "${config.home.homeDirectory}/Library/Logs/emacs-stdout.log";
|
||||||
StandardErrorPath =
|
StandardErrorPath = "${config.home.homeDirectory}/Library/Logs/emacs-stderr.log";
|
||||||
"${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}";
|
UserName = "${config.home.username}";
|
||||||
StartInterval = 3600;
|
StartInterval = 3600;
|
||||||
StandardOutPath = "${config.home.homeDirectory}/Library/Logs/rss2email-stdout.log";
|
StandardOutPath = "${config.home.homeDirectory}/Library/Logs/rss2email-stdout.log";
|
||||||
StandardErrorPath =
|
StandardErrorPath = "${config.home.homeDirectory}/Library/Logs/rss2email-stderr.log";
|
||||||
"${config.home.homeDirectory}/Library/Logs/rss2email-stderr.log";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue