From 1a3486d77574c06b395ab6cda41084f5ed24a3f4 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Thu, 16 Jan 2025 02:11:26 -0800 Subject: modularized nix configuration; builds correctly --- nix/modules/home/mbsync.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'nix/modules/home/mbsync.nix') diff --git a/nix/modules/home/mbsync.nix b/nix/modules/home/mbsync.nix index e509c27..67d971a 100644 --- a/nix/modules/home/mbsync.nix +++ b/nix/modules/home/mbsync.nix @@ -1,10 +1,11 @@ { lib, config, ... }: { - enable = lib.mkDefault config.profiles.home.email.enable; - extraConfig = '' + programs.mbsync = { + enable = lib.mkDefault config.monorepo.profiles.email.enable; + extraConfig = '' IMAPAccount ret2pop - Host ${config.profiles.home.email.imapsServer} - User ${config.profiles.email.email} + Host ${config.monorepo.profiles.email.imapsServer} + User ${config.monorepo.profiles.email.email} PassCmd "cat ${config.sops.secrets.mail.path}" Port 993 TLSType IMAPS @@ -28,4 +29,5 @@ Expunge None SyncState * ''; + }; } -- cgit