~ruther/nixos-config

6b6935286d39651fe59a3a0d47272cf6086ac412 — Frantisek Bohacek 1 year, 6 months ago 7ec6ab7
feat: add email support

Adds uni email to thunderbird
3 files changed, 40 insertions(+), 1 deletions(-)

M hosts/home.nix
A modules/programs/email.nix
M modules/programs/home.nix
M hosts/home.nix => hosts/home.nix +2 -1
@@ 106,7 106,6 @@
      unstable.cinny-desktop     # Chat
      ffmpeg           # Video Support (dslr)

      thunderbird       # email client
      spotify
      obsidian        # Text Editor
    ];


@@ 124,6 123,8 @@
    stateVersion = "23.05";
  };

  programs.command-not-found.enable = true;

  programs = {
    home-manager.enable = true;
  };

A modules/programs/email.nix => modules/programs/email.nix +37 -0
@@ 0,0 1,37 @@
{ config, lib, pkgs, location, ... }:

{
  programs.thunderbird = {
    enable = true;
    profiles = {
      default = {
        isDefault = true;
      };
    };
  };

  accounts.email = {
    accounts = {
      ctu = {
        primary = true;
        thunderbird = {
          enable = true;
        };
        address = "bohacfr2@fel.cvut.cz";
        userName = "bohacfr2";
        realName = "František Boháček";
        imap = {
          host = "imap.fel.cvut.cz";
          port = 993;
        };
        smtp = {
          host = "smtpx.fel.cvut.cz";
          port = 465;
          tls = {
            enable = true;
          };
        };
      };
    };
  };
}

M modules/programs/home.nix => modules/programs/home.nix +1 -0
@@ 15,4 15,5 @@
  ./rofi.nix
  ./clipmenu.nix
  ./firefox.nix
  ./email.nix
]

Do not follow this link