change mail system

This commit is contained in:
Noah Masur 2022-05-17 23:34:09 -04:00
parent 077b3c9337
commit f8edbeaeca
3 changed files with 13 additions and 9 deletions

View File

@ -21,9 +21,7 @@
accounts.email = { accounts.email = {
maildirBasePath = "/home/${config.user}/mail"; maildirBasePath = "/home/${config.user}/mail";
accounts = { accounts = {
home = let home = let address = "${config.user}@${config.mailServer}";
address = "${config.user}@${config.mailServer}";
serverHostname = "mail.${config.mailServer}";
in { in {
userName = address; userName = address;
realName = config.fullName; realName = config.fullName;
@ -46,7 +44,7 @@
}; };
}; };
imap = { imap = {
host = serverHostname; host = "imap.purelymail.com";
port = 993; port = 993;
tls.enable = true; tls.enable = true;
}; };
@ -71,8 +69,8 @@
builtins.toString ./mailpass.age builtins.toString ./mailpass.age
}"; }";
smtp = { smtp = {
host = serverHostname; host = "smtp.purelymail.com";
port = 587; port = 465;
tls.enable = true; tls.enable = true;
}; };
}; };

5
modules/shell/age.nix Normal file
View File

@ -0,0 +1,5 @@
{ config, pkgs, ... }: {
home-manager.users.${config.user}.home.packages = with pkgs; [ age ];
}

View File

@ -1,11 +1,12 @@
{ ... }: { { ... }: {
imports = [ imports = [
./fish ./age.nix
./starship.nix
./fzf.nix
./direnv.nix ./direnv.nix
./fish
./fzf.nix
./git.nix ./git.nix
./github.nix ./github.nix
./starship.nix
./utilities.nix ./utilities.nix
]; ];
} }