mirror of
https://github.com/kmein/niveum
synced 2026-03-19 03:21:10 +01:00
feat(mail): add cock.li
This commit is contained in:
@@ -1,6 +1,16 @@
|
|||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
pass = id: "${pkgs.pass}/bin/pass ${id}";
|
pass = id: "${pkgs.pass}/bin/pass ${id}";
|
||||||
|
enableDefaults = lib.recursiveUpdate {
|
||||||
|
mbsync = {
|
||||||
|
enable = true;
|
||||||
|
create = "both";
|
||||||
|
expunge = "both";
|
||||||
|
};
|
||||||
|
msmtp.enable = true;
|
||||||
|
neomutt.enable = true;
|
||||||
|
notmuch.enable = false;
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
environment.systemPackages = [ pkgs.neomutt ];
|
environment.systemPackages = [ pkgs.neomutt ];
|
||||||
@@ -8,33 +18,40 @@ in
|
|||||||
home-manager.users.me = let maildir = "${config.users.users.me.home}/mail"; in {
|
home-manager.users.me = let maildir = "${config.users.users.me.home}/mail"; in {
|
||||||
accounts.email.maildirBasePath = maildir;
|
accounts.email.maildirBasePath = maildir;
|
||||||
accounts.email.accounts = {
|
accounts.email.accounts = {
|
||||||
kieran-gmail = {
|
cock = enableDefaults {
|
||||||
|
primary = false;
|
||||||
|
smtp = {
|
||||||
|
host = "mail.cock.li";
|
||||||
|
port = 587;
|
||||||
|
tls.enable = true;
|
||||||
|
};
|
||||||
|
imap = {
|
||||||
|
host = "mail.cock.li";
|
||||||
|
port = 993;
|
||||||
|
tls.enable = true;
|
||||||
|
};
|
||||||
|
userName = "2210@cock.li";
|
||||||
|
address = "2210@cock.li";
|
||||||
|
realName = "2210";
|
||||||
|
passwordCommand = pass "mail/2210@cock.li";
|
||||||
|
};
|
||||||
|
kieran-gmail = enableDefaults {
|
||||||
primary = true;
|
primary = true;
|
||||||
flavor = "gmail.com";
|
flavor = "gmail.com";
|
||||||
address = "kieran.meinhardt@gmail.com";
|
address = "kieran.meinhardt@gmail.com";
|
||||||
realName = config.niveum.user.name;
|
realName = config.niveum.user.name;
|
||||||
userName = "kieran.meinhardt";
|
userName = "kieran.meinhardt";
|
||||||
passwordCommand = pass "mail/kieran.meinhardt@gmail.com";
|
passwordCommand = pass "mail/kieran.meinhardt@gmail.com";
|
||||||
neomutt = {
|
neomutt.extraConfig = ''
|
||||||
enable = true;
|
macro index \' "<save-message>+[Gmail]/Alle Nachrichten<enter>" "Archive"
|
||||||
extraConfig = ''
|
'';
|
||||||
macro index \' "<save-message>+[Gmail]/Alle Nachrichten<enter>" "Archive"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
mbsync = {
|
|
||||||
enable = true;
|
|
||||||
create = "both";
|
|
||||||
expunge = "both";
|
|
||||||
};
|
|
||||||
folders = {
|
folders = {
|
||||||
drafts = "[Gmail]/Entw&APw-rfe";
|
drafts = "[Gmail]/Entw&APw-rfe";
|
||||||
sent = "[Gmail]/Gesendet";
|
sent = "[Gmail]/Gesendet";
|
||||||
trash = "[Gmail]/Papierkorb";
|
trash = "[Gmail]/Papierkorb";
|
||||||
};
|
};
|
||||||
msmtp.enable = true;
|
|
||||||
notmuch.enable = false;
|
|
||||||
};
|
};
|
||||||
hu-berlin = {
|
hu-berlin = enableDefaults {
|
||||||
primary = false;
|
primary = false;
|
||||||
address = "meinhark@hu-berlin.de";
|
address = "meinhark@hu-berlin.de";
|
||||||
realName = config.niveum.user.name;
|
realName = config.niveum.user.name;
|
||||||
@@ -50,19 +67,9 @@ in
|
|||||||
port = 993;
|
port = 993;
|
||||||
tls.enable = true;
|
tls.enable = true;
|
||||||
};
|
};
|
||||||
neomutt = {
|
neomutt.extraConfig = ''
|
||||||
enable = true;
|
macro index \' "<save-message>Archives<enter>" "Archive"
|
||||||
extraConfig = ''
|
'';
|
||||||
macro index \' "<save-message>Archives<enter>" "Archive"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
mbsync = {
|
|
||||||
enable = true;
|
|
||||||
create = "both";
|
|
||||||
expunge = "both";
|
|
||||||
};
|
|
||||||
msmtp.enable = true;
|
|
||||||
notmuch.enable = false;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user