A small working email-setup

This commit is contained in:
larstvei 2022-09-20 21:14:28 +02:00
parent cdbfc31d3b
commit 87757e52be
2 changed files with 31 additions and 0 deletions

View File

@ -30,6 +30,7 @@
(epkgs: with epkgs; [ (epkgs: with epkgs; [
vterm vterm
pdf-tools pdf-tools
pkgs.mu
])) ]))
(aspellWithDicts (aspellWithDicts
(dpkgs: with dpkgs; [ (dpkgs: with dpkgs; [
@ -53,6 +54,30 @@
# Somehow related to: https://github.com/NixOS/nixpkgs/issues/1000 # Somehow related to: https://github.com/NixOS/nixpkgs/issues/1000
home.file.".aspell.conf".text = "data-dir ${pkgs.aspell}/lib/aspell"; home.file.".aspell.conf".text = "data-dir ${pkgs.aspell}/lib/aspell";
accounts.email = {
accounts.uio = {
address = "larstvei@ifi.uio.no";
userName = "larstvei@ifi.uio.no";
realName = "Lars Tveito";
imap.host = "imap.uio.no";
smtp.host = "smtp.uio.no";
mbsync = {
enable = true;
create = "maildir";
# Because of Office 365, see: https://kdecherf.com/blog/2017/05/01/mbsync-and-office-365/
extraConfig.account.Timeout = 120;
extraConfig.account.PipelineDepth = 1;
};
msmtp.enable = true;
mu.enable = true;
primary = true;
passwordCommand = "security find-internet-password -s imap.uio.no -a larstvei -w";
};
};
programs = { programs = {
direnv = { direnv = {
@ -98,6 +123,10 @@
ignores = [ ".dir-locals.el" ".envrc" ".DS_Store" ]; ignores = [ ".dir-locals.el" ".envrc" ".DS_Store" ];
}; };
mu.enable = true;
msmtp.enable = true;
mbsync.enable = true;
# Let Home Manager install and manage itself. # Let Home Manager install and manage itself.
home-manager.enable = true; home-manager.enable = true;
}; };

View File

@ -20,6 +20,8 @@
]; ];
}; };
users.users."larstvei".home = "/Users/larstvei";
programs.fish.enable = true; programs.fish.enable = true;
system.activationScripts.postActivation.text = '' system.activationScripts.postActivation.text = ''
# Set the default shell as fish for the user. MacOS doesn't do this like nixOS does # Set the default shell as fish for the user. MacOS doesn't do this like nixOS does