From baae94abb6a9a03914216f0f373b7b0f6b0207bd Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sat, 19 Sep 2026 01:40:50 +0530 Subject: chore: removed all raw string configurations options in favor of files Moved all configurations which were previously raw strings chunks, for options that the home-manager options didn't provide, into files for that specific configuration and reading there contents instead (with string replacement for passing information from the rest of the configuration). --- .../neomutt/account/flavors/gmail.nix | 45 ---------------------- 1 file changed, 45 deletions(-) delete mode 100644 modules/communication/neomutt/account/flavors/gmail.nix (limited to 'modules/communication/neomutt/account/flavors/gmail.nix') diff --git a/modules/communication/neomutt/account/flavors/gmail.nix b/modules/communication/neomutt/account/flavors/gmail.nix deleted file mode 100644 index 9cb51b2..0000000 --- a/modules/communication/neomutt/account/flavors/gmail.nix +++ /dev/null @@ -1,45 +0,0 @@ -# Gmail-specific defaults for folder names, mbsync patterns, and mailboxes -{ - config, - lib, - name, - ... -}: -{ - config = lib.mkIf (config.flavor == "gmail.com") { - folders = { - inbox = lib.mkDefault "Inbox"; - drafts = lib.mkDefault "[Gmail]/Drafts"; - sent = lib.mkDefault "[Gmail]/Sent Mail"; - trash = lib.mkDefault "[Gmail]/Trash"; - }; - - mbsync = { - create = lib.mkDefault "maildir"; - patterns = lib.mkDefault [ - "INBOX" - "[Gmail]/Drafts" - "[Gmail]/Sent Mail" - "[Gmail]/Spam" - ]; - extraConfig.channel = { - Sync = lib.mkDefault "All"; - CopyArrivalDate = lib.mkDefault "yes"; - Expunge = lib.mkDefault "Both"; - SyncState = lib.mkDefault "*"; - }; - }; - - neomutt.extraConfig = lib.mkBefore '' - mailboxes =Inbox ="[Gmail]/Drafts" ="[Gmail]/Sent Mail" ="[Gmail]/Spam" ="[Gmail]/Trash" - unset record - ''; - - notmuch.neomutt.virtualMailboxes = lib.mkDefault [ - { - name = "All Mail"; - query = "folder:${name}/Inbox or folder:\"${name}/[Gmail]/Sent Mail\""; - } - ]; - }; -} -- cgit v1.2.3