feat: enable thunderbird
Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
parent
5a09de9644
commit
3638b13d64
3 changed files with 52 additions and 48 deletions
|
|
@ -1,8 +1,6 @@
|
||||||
{ ... }:
|
{...}: {
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
./alacritty.nix
|
./alacritty.nix
|
||||||
./mail.nix
|
#./mail.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
# adapted from github:Misterio77/nix-config
|
# adapted from github:Misterio77/nix-config
|
||||||
|
{
|
||||||
{ pkgs, lib, config, ... }:
|
pkgs,
|
||||||
|
lib,
|
||||||
let
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
mbsync = "$(config.programs.mbsync.package}/bin/mbsync";
|
mbsync = "$(config.programs.mbsync.package}/bin/mbsync";
|
||||||
|
|
||||||
common = rec {
|
common = rec {
|
||||||
|
|
@ -24,7 +26,8 @@ in {
|
||||||
accounts.email = {
|
accounts.email = {
|
||||||
maildirBasePath = "Mail";
|
maildirBasePath = "Mail";
|
||||||
accounts = {
|
accounts = {
|
||||||
inuits = rec {
|
inuits =
|
||||||
|
rec {
|
||||||
primary = true;
|
primary = true;
|
||||||
address = "landervdb@inuits.eu";
|
address = "landervdb@inuits.eu";
|
||||||
passwordCommand = "cat ${config.sops.secrets.inuits-mail-pass.path}";
|
passwordCommand = "cat ${config.sops.secrets.inuits-mail-pass.path}";
|
||||||
|
|
@ -55,7 +58,8 @@ in {
|
||||||
msmtp.enable = true;
|
msmtp.enable = true;
|
||||||
smtp.host = "zimbra88.inuits.eu";
|
smtp.host = "zimbra88.inuits.eu";
|
||||||
userName = "landervdb";
|
userName = "landervdb";
|
||||||
} // common;
|
}
|
||||||
|
// common;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -80,15 +84,16 @@ in {
|
||||||
OnUnitActiveSec = "5m";
|
OnUnitActiveSec = "5m";
|
||||||
};
|
};
|
||||||
Install = {
|
Install = {
|
||||||
WantedBy = [ "timers.target" ];
|
WantedBy = ["timers.target"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# run `createMaildir` after `linkGeneration`
|
# run `createMaildir` after `linkGeneration`
|
||||||
home.activation = let
|
home.activation = let
|
||||||
mbsyncAccounts = lib.filter (a: a.mbsync.enable) (lib.attrValues config.accounts.email.accounts);
|
mbsyncAccounts = lib.filter (a: a.mbsync.enable) (lib.attrValues config.accounts.email.accounts);
|
||||||
in lib.mkIf (mbsyncAccounts != [ ]) {
|
in
|
||||||
createMaildir = lib.mkForce (lib.hm.dag.entryAfter [ "linkGeneration" ] ''
|
lib.mkIf (mbsyncAccounts != []) {
|
||||||
|
createMaildir = lib.mkForce (lib.hm.dag.entryAfter ["linkGeneration"] ''
|
||||||
run mkdir -m700 -p $VERBOSE_ARG ${
|
run mkdir -m700 -p $VERBOSE_ARG ${
|
||||||
lib.concatMapStringsSep " " (a: a.maildir.absPath) mbsyncAccounts
|
lib.concatMapStringsSep " " (a: a.maildir.absPath) mbsyncAccounts
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
{ ... }:
|
{...}: {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
./global
|
./global
|
||||||
./features/workstation
|
./features/workstation
|
||||||
];
|
];
|
||||||
|
|
||||||
|
programs.thunderbird.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue