diff --git a/home/accounts.nix b/home/accounts.nix index df2f8fa..ceb6934 100644 --- a/home/accounts.nix +++ b/home/accounts.nix @@ -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: ({ diff --git a/home/launchd.nix b/home/launchd.nix index 2d53d62..a601ea4 100644 --- a/home/launchd.nix +++ b/home/launchd.nix @@ -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"; }; }; };