Skip to content

Email

Source directory: modules/email/

default.nix

modules/email/default.nix

  • Enable option: Email system with NeoMutt and Gmail integration
  • Enable option: NeoMutt email client
  • Enable option: AI-powered email processing
  • Enable option: Email notifications via SwayNC

Options: enable, primary, secondary, provider, highPriorityOnly

Options declaration (Nix)
  options.features.email = {
    enable = mkEnableOption "Email system with NeoMutt and Gmail integration";

    accounts = {
      primary = mkOption {
        type = types.str;
        default = "olaf@freundcloud.com";
        description = "Primary email account";
      };

      secondary = mkOption {
        type = types.str;
        default = "olaf.loken@gmail.com";
        description = "Secondary email account";
      };
    };

    neomutt = {
      enable = mkEnableOption "NeoMutt email client" // { default = true; };
    };


    ai = {
      enable = mkEnableOption "AI-powered email processing";
      provider = mkOption {
        type = types.enum [ "openai" "anthropic" "gemini" ];
        default = "openai";
        description = "AI provider for email processing";
      };
    };

    notifications = {
      enable = mkEnableOption "Email notifications via SwayNC";
      highPriorityOnly = mkOption {
        type = types.bool;
        default = true;
        description = "Only show notifications for high-priority emails";
      };
    };
  }

accounts.nix

modules/email/neomutt/accounts.nix

No option declarations; see source for implementation.

default.nix

modules/email/neomutt/default.nix

No option declarations; see source for implementation.

theme.nix

modules/email/neomutt/theme.nix

No option declarations; see source for implementation.