-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fbc9ee5
commit df07d31
Showing
7 changed files
with
160 additions
and
53 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
pkgs, | ||
lib, | ||
... | ||
}: { | ||
programs.aerc = { | ||
enable = true; | ||
extraConfig = { | ||
general.unsafe-accounts-conf = true; | ||
|
||
ui = { | ||
this-day-time-format = ''" 15:04"''; | ||
this-year-time-format = "Mon Jan 02 15:04"; | ||
timestamp-format = "2006-01-02 15:04"; | ||
spinner = '' | ||
[ ⡿ ],[ ⣟ ],[ ⣯ ],[ ⣷ ],[ ⣾ ],[ ⣽ ],[ ⣻ ],[ ⢿ ] | ||
''; | ||
}; | ||
|
||
hooks = { | ||
# TODO: I need to figure out a better notification system for | ||
# when aerc is _not_ running. | ||
# mail-received = ''exec ${pkgs.libnotify}/bin/notify-send -i ${../../../assets/mail.svg} "$AERC_FROM_NAME" "$AERC_SUBJECT"''; | ||
|
||
# This isn't optimal to sync all mailboxes, but this can of course be overridden. | ||
mail-deleted = lib.mkDefault "exec ${pkgs.isync}/bin/mbsync -a"; | ||
}; | ||
|
||
filters = { | ||
"text/plain" = "colorize"; | ||
"text/html" = "html | colorize"; | ||
"text/calendar" = "calendar"; | ||
"message/delivery-status" = "colorize"; | ||
"message/rfc822" = "colorize"; | ||
"image/*" = "${pkgs.catimg}/bin/catimg -"; | ||
}; | ||
}; | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
config, | ||
pkgs, | ||
}: { | ||
sops.secrets.email-password = { | ||
sopsFile = ./secrets/email.yml; | ||
format = "yaml"; | ||
key = "password"; | ||
}; | ||
|
||
accounts.email = { | ||
maildirBasePath = "Mail"; | ||
|
||
accounts = { | ||
personal = { | ||
primary = true; | ||
flavor = "fastmail.com"; | ||
|
||
realName = "Varun Narravula"; | ||
address = "[email protected]"; | ||
userName = "[email protected]"; | ||
passwordCommand = "cat ${config.sops.secrets.email-password.path}"; | ||
|
||
aerc.enable = true; | ||
msmtp.enable = true; | ||
mbsync = { | ||
enable = true; | ||
|
||
create = "both"; | ||
expunge = "both"; | ||
remove = "both"; | ||
}; | ||
imapnotify = { | ||
enable = true; | ||
onNotify = ''${pkgs.isync}/bin/mbsync personal && ${pkgs.libnotify}/bin/notify-send -i ${../../assets/mail.svg} "You've got mail\!" "Go check it out."''; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
programs = { | ||
msmtp.enable = true; | ||
mbsync.enable = true; | ||
}; | ||
services.imapnotify.enable = true; | ||
|
||
home.persistence."${config.persistence.directory}" = { | ||
directories = [ | ||
"Mail" | ||
]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
password: ENC[AES256_GCM,data:JItZO3NQf88haFI21D30nA==,iv:n5b9HMJnCjQUErW5q47ma2YGatdmsebtM5pVcb97P4U=,tag:ES0NWbps0KJr8WawGYh1xw==,type:str] | ||
sops: | ||
kms: [] | ||
gcp_kms: [] | ||
azure_kv: [] | ||
hc_vault: [] | ||
age: | ||
- recipient: age1lq2t4k8la567nvgk5j3f3du0gahg5y9u20s5x43t8cdc5zyqsu2qunrpaz | ||
enc: | | ||
-----BEGIN AGE ENCRYPTED FILE----- | ||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSA2c1AzV3puTG9KWThjVmhX | ||
Yk5rWlovNG52WHpwOElUTDJpWEoxM01QUUZrClNGRGl0SmZzUThSK3Z0VlpFaHZC | ||
K3ovRW5JUzBRSHBLRFlLa1pkQUQrZGcKLS0tIDZwWUxqZ21SbzM4OUc2VEM1SFFY | ||
ZDN2WmhBOWk2Ly90ZHRsMUdySXN3Nm8KUE+ujR1NVO6l+AHmNCXI10TXKeMtvoj3 | ||
MPVfB70K0grwNHcxRHbCvCLZwNrfhP3h0XE58lhsk+/wrViM+MnAwA== | ||
-----END AGE ENCRYPTED FILE----- | ||
lastmodified: "2024-11-12T07:45:12Z" | ||
mac: ENC[AES256_GCM,data:VeenWhT567JCJqwH23kg1CSztJ6RVZSwZ2WhEV3SqaHnSD1zYvNocRBB4+okLWyxUl77n2pIs1cEBtxJzJveM8gnX9BJ+pLwNvB6/KUJwWCY8hbOS99M9ACpWoqsMEh2ifgaGMEzJ4L5aZ9taeX0+ByFpAu3uQUOzgNJaXYl8C8=,iv:UtaVA4BTkIRqWKob36f0xulrh0wZqhyDL27DfWRjMlE=,tag:Q6146/oxYJrCGBU50rL9KA==,type:str] | ||
pgp: | ||
- created_at: "2024-11-10T22:12:57Z" | ||
enc: |- | ||
-----BEGIN PGP MESSAGE----- | ||
hQIMA4+MSbs93IEfARAAngCmadnAWSa6v9b/f168OCGxo4rxCkWxuG3crkWC98yq | ||
Clrj7HTSm+M2lsVjOMBeqPrb8PoN9w/EBGQ2573Kzv8J1nCGLJKXaTOPghunhJHE | ||
LAKTrfqer8+OarIfIqoRfmz57fDIgeMZ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miSNjgtBJjMpqETdQcqVMjHPu6X8SwgXJyn0xbecLGQk8HCLrlL | ||
mYaam2BIllmSzZdGdb1yqdULrYJ21b8UB8Iy3FeRud168mjgSsV8cBHZnyS2LCe4 | ||
juFzFnv5E3Bzbz1mbGYA1uEtUyLqqjJ66sm81q3La4cSkl09qBoQvkqUwrgNE19M | ||
gSTGeLIS3PjyVIKyoFCdHCGknM6ZVhMY9X0gf07+8AUPZS8UzaF1fMEGsPDjYtJc | ||
AfbQ45kYQrg414GlqB+7oMF73j/+xu55m9ifA7cIRX8PfYuNA/ViHNbzlznuJ4OW | ||
IAXoSmXarSEvGBR2IHKKnap91ewU11pVET1vN/xWq3r3b+ns/v/qpXklSIg= | ||
=fFPm | ||
-----END PGP MESSAGE----- | ||
fp: 522e3a7813b5d0b5d70e5a40a1f17e43f6747fc0 | ||
unencrypted_suffix: _unencrypted | ||
version: 3.9.1 |