add encrypted mail password

This commit is contained in:
Noah Masur 2022-05-11 21:08:16 -04:00
parent 73c837b710
commit 2c07d8e24a
2 changed files with 15 additions and 1 deletions

View File

@ -11,6 +11,8 @@
home-manager.users.${config.user} = { home-manager.users.${config.user} = {
home.packages = with pkgs; [ age ];
programs.himalaya = { enable = true; }; programs.himalaya = { enable = true; };
accounts.email = { accounts.email = {
@ -59,7 +61,9 @@
mu.enable = false; mu.enable = false;
notmuch.enable = false; notmuch.enable = false;
passwordCommand = passwordCommand =
"cat /home/${config.user}/.config/himalaya/passwd"; "${pkgs.age}/bin/age --decrypt --identity /home/${config.user}/.ssh/id_rsa ${
builtins.toString ./mailpass.age
}";
smtp = { smtp = {
host = serverHostname; host = serverHostname;
port = 587; port = 587;

10
modules/mail/mailpass.age Normal file
View File

@ -0,0 +1,10 @@
age-encryption.org/v1
-> ssh-rsa 6vVbxg
X7xJSc42VFglgjPxz45J3uoGtyZZdI6qyIEL+ZKxzhgYTa66/LVhJT/sLJlg7lnp
DoZCGEvVIrTzlysHeWvNKUIkK/iiRLdsqJybPWs/hai9J2q3OcXehbvU+adHhhxn
7y3Ycle+XeQ2QnFtMZBL0niQNAo3CMNKO6SNQeFwzwGgHmPmAF2JVnwxB5l09Y+e
12T6aQCuh1pZ7oRjFQHg3T1aqXcslyBLLNuT4CXkIQ4hXSPAJGHUcy+rj8+3NsXW
BwI7w3CtBLGDaZue6FBucD3ii4lIcBtUzx9BsgHfsrHPvgx8jAt6cLyWmMFwQO0Y
43zNsHUHok2GEzKE1zLcAA
--- HyCGtqqnrN0ukBo11RTE7l3HUvT2o+qxvlghoY0cY80
:¼ElnÁ<Í2029I70J/Za™\¢{ÛÓ{œX3÷´Î!³¾B™Dƒ:gÇÌG~Wº®I³vWjm