feat: enable thunderbird with accounts
This commit is contained in:
parent
02185dad35
commit
d727fb6984
5 changed files with 84 additions and 4 deletions
|
|
@ -36,6 +36,9 @@
|
||||||
email = "noa@voorwaarts.nl";
|
email = "noa@voorwaarts.nl";
|
||||||
do_sign = true;
|
do_sign = true;
|
||||||
};
|
};
|
||||||
|
thunderbird = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -67,7 +70,6 @@
|
||||||
keepassxc
|
keepassxc
|
||||||
yubikey-manager-qt
|
yubikey-manager-qt
|
||||||
yubico-piv-tool
|
yubico-piv-tool
|
||||||
thunderbird
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,9 @@
|
||||||
email = "noa@voorwaarts.nl";
|
email = "noa@voorwaarts.nl";
|
||||||
do_sign = true;
|
do_sign = true;
|
||||||
};
|
};
|
||||||
|
thunderbird = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -70,7 +73,6 @@
|
||||||
keepassxc
|
keepassxc
|
||||||
yubikey-manager-qt
|
yubikey-manager-qt
|
||||||
yubico-piv-tool
|
yubico-piv-tool
|
||||||
thunderbird
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ in
|
||||||
./git.nix
|
./git.nix
|
||||||
./kitty.nix
|
./kitty.nix
|
||||||
./zsh.nix
|
./zsh.nix
|
||||||
|
./thunderbird.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
|
||||||
75
modules/applications/thunderbird.nix
Normal file
75
modules/applications/thunderbird.nix
Normal file
|
|
@ -0,0 +1,75 @@
|
||||||
|
{ lib, config, pkgs, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.modules.apps.thunderbird;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.modules.apps.thunderbird = {
|
||||||
|
enable = lib.mkEnableOption "enable thunderbird";
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
accounts.email.accounts =
|
||||||
|
let gpg_key = "A16CDCBF1472541F";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
"noa-voorwaarts" = {
|
||||||
|
address = "noa@voorwaarts.nl";
|
||||||
|
gpg = {
|
||||||
|
signByDefault = true;
|
||||||
|
key = gpg_key;
|
||||||
|
};
|
||||||
|
imap = {
|
||||||
|
host = "mail.voorwaarts.nl";
|
||||||
|
port = 993;
|
||||||
|
};
|
||||||
|
primary = true;
|
||||||
|
realName = "Noa Aarts";
|
||||||
|
smtp = {
|
||||||
|
host = "mail.voorwaarts.nl";
|
||||||
|
port = 587;
|
||||||
|
tls.useStartTls = true;
|
||||||
|
};
|
||||||
|
thunderbird.enable = true;
|
||||||
|
userName = "noa@voorwaarts.nl";
|
||||||
|
};
|
||||||
|
"noa-itepastra" = {
|
||||||
|
address = "noa@itepastra.nl";
|
||||||
|
gpg = {
|
||||||
|
signByDefault = true;
|
||||||
|
key = gpg_key;
|
||||||
|
};
|
||||||
|
imap = {
|
||||||
|
host = "mail.itepastra.nl";
|
||||||
|
port = 993;
|
||||||
|
};
|
||||||
|
realName = "Noa Aarts";
|
||||||
|
smtp = {
|
||||||
|
host = "mail.itepastra.nl";
|
||||||
|
};
|
||||||
|
thunderbird.enable = true;
|
||||||
|
userName = "noa@itepastra.nl";
|
||||||
|
};
|
||||||
|
"itepastra-gmail" = {
|
||||||
|
address = "itepastra@gmail.com";
|
||||||
|
flavor = "gmail.com";
|
||||||
|
thunderbird.enable = true;
|
||||||
|
realName = "Noa Aarts";
|
||||||
|
userName = "itepastra";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.thunderbird = {
|
||||||
|
enable = true;
|
||||||
|
# TODO: add some default firefox settings
|
||||||
|
package = pkgs.thunderbird;
|
||||||
|
profiles = {
|
||||||
|
"default" = {
|
||||||
|
isDefault = true;
|
||||||
|
withExternalGnupg = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{...}:
|
{ ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hyprland.nix
|
./hyprland.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue