From 4f3edea6903f3e9ca46176c06305147e71e12125 Mon Sep 17 00:00:00 2001 From: sefidel Date: Tue, 21 Feb 2023 16:10:58 +0900 Subject: feat: use passage for IMAP authentication --- home/profiles/communication/default.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'home/profiles') diff --git a/home/profiles/communication/default.nix b/home/profiles/communication/default.nix index 86028e8..643b511 100644 --- a/home/profiles/communication/default.nix +++ b/home/profiles/communication/default.nix @@ -24,9 +24,6 @@ in config = lib.mkIf cfg.enable (lib.mkMerge [ (lib.mkIf pkgs.stdenv.isLinux { # TODO: is this needed? - - sops.secrets.sef-imap-password = { }; - accounts.email = { maildirBasePath = "${config.home.homeDirectory}/mail"; @@ -76,7 +73,7 @@ in primary = true; realName = "***REMOVED***"; userName = poorObfuscation "sefidel.com" "contact"; - passwordCommand = "${pkgs.coreutils}/bin/cat ${builtins.replaceStrings ["%r"] ["$XDG_RUNTIME_DIR"] config.sops.secrets.sef-imap-password.path}"; + passwordCommand = "${pkgs.passage}/bin/passage show email/sef"; }; }; @@ -271,6 +268,7 @@ in Type = "oneshot"; ExecStart = "${mbsyncCmd} --all"; RemainAfterExit = true; + TimeoutStartSec = "5min"; }; Install.WantedBy = [ "default.target" ]; }; -- cgit 1.4.1