Switch to geary

This commit is contained in:
Alexander Bantyev 2020-12-25 23:46:40 +03:00
parent fa507f3e29
commit 63dfc72aa6
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
4 changed files with 74 additions and 6 deletions

View File

@ -31,8 +31,8 @@ with import ../support.nix { inherit lib config; }; {
desktop = "org.gnome.FileRoller";
};
mail = {
cmd = "${pkgs.sylpheed}/bin/sylpheed";
desktop = "sylpheed";
cmd = "${pkgs.gnome3.geary}/bin/geary";
desktop = "org.gnome.Geary";
};
text_processor = {
cmd = "${pkgs.abiword}/bin/abiword";

View File

@ -0,0 +1,67 @@
{ config, pkgs, lib, ... }:
let
gearyConfig = {
Account = {
label = "";
ordinal = 6;
prefetch_days = 30;
save_drafts = true;
save_sent = true;
sender_mailboxes = "Alexander Bantyev <balsoft@balsoft.ru>;";
service_provider = "other";
signature = builtins.replaceStrings ["\n"] ["\\n"] ''
--
Александр Бантьев /Alexander Bantyev/ aka balsoft
Nix DevOPS/SRE at serokell.io
<balsoft@balsoft.ru>
<alexander.bantyev@serokell.io>
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;
home-manager.users.balsoft = {
xdg.configFile."geary/user-style.css".text = ''
*, html, body, body.plain div, body.plain a, body.plain p, body.plain span {
background: ${config.themes.colors .bg} !important;
color: ${config.themes.colors.fg} !important;
font: 16px 'IBM Plex Mono', monospace;
}
'';
xdg.configFile."geary/account_03/geary.ini".text = lib.generators.toGitINI gearyConfig;
};
}

View File

@ -4,7 +4,7 @@ device:
./applications/packages.nix
./applications/emacs
./applications/alacritty.nix
./applications/sylpheed.nix
./applications/geary.nix
./applications/weechat.nix
./applications/okular.nix
./applications/yt-utilities.nix

View File

@ -24,7 +24,7 @@ in {
];
"" = [
{ app_id = "org.kde.trojita"; }
{ title = ".* - Sylpheed.*"; }
{ title = ".*.Geary*"; }
{ title = "balsoft : weechat.*"; }
{ title = "Spectral"; }
{ title = "Slack"; }
@ -78,7 +78,9 @@ in {
];
};
startup = [
{ command = "${apps.browser.cmd}"; }
{ command = apps.browser.cmd; }
{ command = apps.mail.cmd; }
{
command =
"${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1";
@ -87,7 +89,6 @@ in {
command =
"${pkgs.keepassxc}/bin/keepassxc /home/balsoft/projects/nixos-config/misc/Passwords.kdbx";
}
{ command = "${pkgs.termNote}/bin/noted"; }
{ command = "${pkgs.spectral}/bin/spectral"; }
{ command = "${pkgs.xorg.xrdb}/bin/xrdb -merge ~/.Xresources"; }