configure email for aerc
This commit is contained in:
parent
afb8dd50f4
commit
3a2dd0cc0b
1 changed files with 39 additions and 4 deletions
|
|
@ -1,4 +1,7 @@
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
|
let
|
||||||
|
pass = "passage";
|
||||||
|
in
|
||||||
{
|
{
|
||||||
programs.thunderbird = {
|
programs.thunderbird = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -9,24 +12,44 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.aerc = {
|
||||||
|
enable = true;
|
||||||
|
# safe since the accounts file just contains commands for retrieving passwords and is readonly in the nix store
|
||||||
|
extraConfig.general.unsafe-accounts-conf = true;
|
||||||
|
};
|
||||||
|
|
||||||
accounts.email.accounts = {
|
accounts.email.accounts = {
|
||||||
"rpqt@rpqt.fr" = {
|
"rpqt@rpqt.fr" = rec {
|
||||||
address = "rpqt@rpqt.fr";
|
address = "rpqt@rpqt.fr";
|
||||||
realName = "Romain Paquet";
|
realName = "Romain Paquet";
|
||||||
primary = true;
|
primary = true;
|
||||||
flavor = "migadu.com";
|
flavor = "migadu.com";
|
||||||
thunderbird.enable = config.programs.thunderbird.enable;
|
thunderbird.enable = config.programs.thunderbird.enable;
|
||||||
|
aerc.enable = config.programs.aerc.enable;
|
||||||
|
passwordCommand = [
|
||||||
|
pass
|
||||||
|
"show"
|
||||||
|
"mail/${address}"
|
||||||
|
];
|
||||||
|
folders.inbox = "INBOX";
|
||||||
};
|
};
|
||||||
|
|
||||||
"admin@rpqt.fr" = {
|
"admin@rpqt.fr" = rec {
|
||||||
address = "admin@rpqt.fr";
|
address = "admin@rpqt.fr";
|
||||||
aliases = [ "postmaster@rpqt.fr" ];
|
aliases = [ "postmaster@rpqt.fr" ];
|
||||||
realName = "Postmaster";
|
realName = "Postmaster";
|
||||||
flavor = "migadu.com";
|
flavor = "migadu.com";
|
||||||
thunderbird.enable = config.programs.thunderbird.enable;
|
thunderbird.enable = config.programs.thunderbird.enable;
|
||||||
|
aerc.enable = config.programs.aerc.enable;
|
||||||
|
passwordCommand = [
|
||||||
|
pass
|
||||||
|
"show"
|
||||||
|
"mail/${address}"
|
||||||
|
];
|
||||||
|
folders.inbox = "INBOX";
|
||||||
};
|
};
|
||||||
|
|
||||||
"romain.paquet@grenoble-inp.org" = {
|
"romain.paquet@grenoble-inp.org" = rec {
|
||||||
address = "romain.paquet@grenoble-inp.org";
|
address = "romain.paquet@grenoble-inp.org";
|
||||||
realName = "Romain Paquet";
|
realName = "Romain Paquet";
|
||||||
userName = "romain.paquet@grenoble-inp.org";
|
userName = "romain.paquet@grenoble-inp.org";
|
||||||
|
|
@ -39,14 +62,26 @@
|
||||||
port = 465;
|
port = 465;
|
||||||
};
|
};
|
||||||
thunderbird.enable = config.programs.thunderbird.enable;
|
thunderbird.enable = config.programs.thunderbird.enable;
|
||||||
|
aerc.enable = config.programs.aerc.enable;
|
||||||
|
passwordCommand = [
|
||||||
|
pass
|
||||||
|
"show"
|
||||||
|
"mail/${address}"
|
||||||
|
];
|
||||||
|
folders.inbox = "INBOX";
|
||||||
};
|
};
|
||||||
|
|
||||||
"admin@turifer.dev" = {
|
"admin@turifer.dev" = rec {
|
||||||
address = "admin@turifer.dev";
|
address = "admin@turifer.dev";
|
||||||
aliases = [ "postmaster@turifer.dev" ];
|
aliases = [ "postmaster@turifer.dev" ];
|
||||||
realName = "Postmaster";
|
realName = "Postmaster";
|
||||||
flavor = "migadu.com";
|
flavor = "migadu.com";
|
||||||
thunderbird.enable = config.programs.thunderbird.enable;
|
thunderbird.enable = config.programs.thunderbird.enable;
|
||||||
|
aerc.enable = config.programs.aerc.enable;
|
||||||
|
passwordCommand = [
|
||||||
|
pass
|
||||||
|
"mail/${address}"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
"romain@student.agh.edu.pl" = {
|
"romain@student.agh.edu.pl" = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue