From 6b6935286d39651fe59a3a0d47272cf6086ac412 Mon Sep 17 00:00:00 2001 From: Frantisek Bohacek Date: Sun, 24 Sep 2023 14:24:20 +0200 Subject: [PATCH] feat: add email support Adds uni email to thunderbird --- hosts/home.nix | 3 ++- modules/programs/email.nix | 37 +++++++++++++++++++++++++++++++++++++ modules/programs/home.nix | 1 + 3 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 modules/programs/email.nix diff --git a/hosts/home.nix b/hosts/home.nix index 84c5cad..27c1e0c 100644 --- a/hosts/home.nix +++ b/hosts/home.nix @@ -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; }; diff --git a/modules/programs/email.nix b/modules/programs/email.nix new file mode 100644 index 0000000..38a6734 --- /dev/null +++ b/modules/programs/email.nix @@ -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; + }; + }; + }; + }; + }; +} diff --git a/modules/programs/home.nix b/modules/programs/home.nix index 695adb9..afe2fa3 100644 --- a/modules/programs/home.nix +++ b/modules/programs/home.nix @@ -15,4 +15,5 @@ ./rofi.nix ./clipmenu.nix ./firefox.nix + ./email.nix ] -- 2.48.1