From f8edbeaecad72aef2542c1c1f94941e02d2b7bf5 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Tue, 17 May 2022 23:34:09 -0400 Subject: [PATCH] change mail system --- modules/mail/himalaya.nix | 10 ++++------ modules/shell/age.nix | 5 +++++ modules/shell/default.nix | 7 ++++--- 3 files changed, 13 insertions(+), 9 deletions(-) create mode 100644 modules/shell/age.nix diff --git a/modules/mail/himalaya.nix b/modules/mail/himalaya.nix index 88f4cfe..d067e94 100644 --- a/modules/mail/himalaya.nix +++ b/modules/mail/himalaya.nix @@ -21,9 +21,7 @@ accounts.email = { maildirBasePath = "/home/${config.user}/mail"; accounts = { - home = let - address = "${config.user}@${config.mailServer}"; - serverHostname = "mail.${config.mailServer}"; + home = let address = "${config.user}@${config.mailServer}"; in { userName = address; realName = config.fullName; @@ -46,7 +44,7 @@ }; }; imap = { - host = serverHostname; + host = "imap.purelymail.com"; port = 993; tls.enable = true; }; @@ -71,8 +69,8 @@ builtins.toString ./mailpass.age }"; smtp = { - host = serverHostname; - port = 587; + host = "smtp.purelymail.com"; + port = 465; tls.enable = true; }; }; diff --git a/modules/shell/age.nix b/modules/shell/age.nix new file mode 100644 index 0000000..338be8e --- /dev/null +++ b/modules/shell/age.nix @@ -0,0 +1,5 @@ +{ config, pkgs, ... }: { + + home-manager.users.${config.user}.home.packages = with pkgs; [ age ]; + +} diff --git a/modules/shell/default.nix b/modules/shell/default.nix index 5423acb..ad74629 100644 --- a/modules/shell/default.nix +++ b/modules/shell/default.nix @@ -1,11 +1,12 @@ { ... }: { imports = [ - ./fish - ./starship.nix - ./fzf.nix + ./age.nix ./direnv.nix + ./fish + ./fzf.nix ./git.nix ./github.nix + ./starship.nix ./utilities.nix ]; }