Setting up mails with nix

Hey so i wanna setup email on nixos but all i find are tutorials on creating mail-servers, i dont want that. just wanna setup mail accounts using sops to hide passwords and everything. i tried writing this so far
mail.nix

{ lib, config, pkgs, ... }:
{
  options.modules.communication.mail = {
    enable = lib.mkEnableOption "enable mail module";
  };
  config = lib.mkIf (
    config.modules.communication.enable && 
    config.modules.communication.mail.enable
  ) {
    environment.systemPacakges = [ pkgs.neomutt ];
  };
}

im clueles about most tings regarding mail, i read somethings like notmuch and nsync on other repos not sure if i should add those.

setting up emails on linux was for a long time my nemesis. GitHub - nix-community/home-manager: Manage a user environment using Nix [maintainer=@rycee] has a pretty good email system that can generate configs for neomutts, thunderbird, alot & co. I suggest you look into that

1 Like

you know anywhere i can look for to learn to setup mail with home-manager then? i cant find any tutorial anywhere.

My typical answer is to look at tests

man home-configuration.nix contains a lot of details. Other than that you can search github for public setups