2020-12-26 00:46:40 +04:00
|
|
|
|
{ config, pkgs, lib, ... }:
|
2021-05-25 15:04:21 +04:00
|
|
|
|
let
|
2020-12-26 00:46:40 +04:00
|
|
|
|
gearyConfig = {
|
|
|
|
|
Account = {
|
|
|
|
|
label = "";
|
|
|
|
|
ordinal = 6;
|
2021-01-11 18:09:34 +04:00
|
|
|
|
prefetch_days = -1;
|
2020-12-26 00:46:40 +04:00
|
|
|
|
save_drafts = true;
|
|
|
|
|
save_sent = true;
|
|
|
|
|
sender_mailboxes = "Alexander Bantyev <balsoft@balsoft.ru>;";
|
|
|
|
|
service_provider = "other";
|
2021-06-14 12:57:39 +04:00
|
|
|
|
signature = builtins.replaceStrings [ "\n" ] [ "\\n" ] ''
|
2020-12-26 00:46:40 +04:00
|
|
|
|
--
|
|
|
|
|
Александр Бантьев /Alexander Bantyev/ aka balsoft
|
|
|
|
|
|
2021-10-29 20:18:29 +04:00
|
|
|
|
Nix DevOPS/SRE at tweag.io
|
2020-12-26 00:46:40 +04:00
|
|
|
|
|
|
|
|
|
<balsoft@balsoft.ru>
|
2021-10-29 20:18:29 +04:00
|
|
|
|
<alexander.bantyev@tweag.io>
|
2020-12-26 00:46:40 +04:00
|
|
|
|
|
|
|
|
|
matrix://@balsoft:balsoft.ru
|
|
|
|
|
(https://matrix.to/#/@balsoft:balsoft.ru)
|
|
|
|
|
https://t.me/balsoft
|
|
|
|
|
https://github.com/balsoft
|
|
|
|
|
'';
|
|
|
|
|
use_signature = true;
|
|
|
|
|
};
|
|
|
|
|
Folders = {
|
|
|
|
|
archive_folder = "Archive;";
|
|
|
|
|
drafts_folder = "";
|
|
|
|
|
junk_folder = "";
|
|
|
|
|
sent_folder = "";
|
|
|
|
|
trash_folder = "";
|
|
|
|
|
};
|
|
|
|
|
Incoming = {
|
|
|
|
|
credentials = "custom";
|
|
|
|
|
host = "balsoft.ru";
|
|
|
|
|
login = "balsoft@balsoft.ru";
|
|
|
|
|
port = 993;
|
|
|
|
|
remember_password = true;
|
|
|
|
|
transport_security = "transport";
|
|
|
|
|
};
|
|
|
|
|
Metadata = {
|
|
|
|
|
status = "enabled";
|
|
|
|
|
version = 1;
|
|
|
|
|
};
|
|
|
|
|
Outgoing = {
|
|
|
|
|
credentials = "use-incoming";
|
|
|
|
|
host = "balsoft.ru";
|
|
|
|
|
port = 587;
|
|
|
|
|
remember_password = true;
|
|
|
|
|
transport_security = "start-tls";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
in {
|
|
|
|
|
programs.geary.enable = true;
|
2021-06-08 20:35:21 +04:00
|
|
|
|
|
|
|
|
|
persist.cache.directories = [ "/home/balsoft/.local/share/geary" ];
|
|
|
|
|
|
2021-06-14 12:57:39 +04:00
|
|
|
|
defaultApplications.mail = {
|
|
|
|
|
cmd = "${pkgs.gnome3.geary}/bin/geary";
|
|
|
|
|
desktop = "org.gnome.Geary";
|
|
|
|
|
};
|
|
|
|
|
|
2021-12-23 22:23:03 +04:00
|
|
|
|
home-manager.users.balsoft = let
|
|
|
|
|
fonts = config.themes.fonts;
|
|
|
|
|
thm = pkgs.my-lib.thmHash config.themes.colors;
|
|
|
|
|
in {
|
2020-12-26 00:46:40 +04:00
|
|
|
|
xdg.configFile."geary/user-style.css".text = ''
|
|
|
|
|
*, html, body, body.plain div, body.plain a, body.plain p, body.plain span {
|
2021-12-23 22:23:03 +04:00
|
|
|
|
background: ${thm.base00} !important;
|
|
|
|
|
color: ${thm.base05} !important;
|
|
|
|
|
font-family: '${fonts.mono.family}', monospace !important;
|
2020-12-30 19:14:56 +04:00
|
|
|
|
}
|
|
|
|
|
*, html, body {
|
2021-12-23 22:23:03 +04:00
|
|
|
|
font-size: ${toString fonts.mono.size}pt;
|
2020-12-26 00:46:40 +04:00
|
|
|
|
}
|
|
|
|
|
'';
|
2021-01-11 22:50:18 +04:00
|
|
|
|
home.activation.geary = ''
|
|
|
|
|
mkdir -p "$XDG_CONFIG_HOME/geary/account_03"
|
2021-06-14 12:57:39 +04:00
|
|
|
|
$DRY_RUN_CMD ln -sf $VERBOSE_ARG ${
|
|
|
|
|
builtins.toFile "geary.ini" (pkgs.my-lib.genIni gearyConfig)
|
|
|
|
|
} "$XDG_CONFIG_HOME/geary/account_03/geary.ini"
|
2021-01-11 22:50:18 +04:00
|
|
|
|
'';
|
2020-12-26 00:46:40 +04:00
|
|
|
|
};
|
|
|
|
|
}
|