programs.lieer: add module

Add 'programs.lieer', a tool for synchronizing a Gmail account with a
local maildir and notmuch database. Per-account configuration lives in
'accounts.email.accounts.<name>.lieer'.
This commit is contained in:
Tad Fisher 2020-02-20 23:19:30 -08:00 committed by Robert Helgesson
parent 0056a5aea1
commit 60a939bd01
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
9 changed files with 192 additions and 0 deletions

View file

@ -0,0 +1 @@
{ lieer = ./lieer.nix; }

View file

@ -0,0 +1 @@
{"account":"hm@example.com","drop_non_existing_label":false,"ignore_remote_labels":["CATEGORY_FORUMS","CATEGORY_PROMOTIONS","CATEGORY_UPDATES","CATEGORY_SOCIAL","CATEGORY_PERSONAL"],"ignore_tags":[],"replace_slash_with_dot":false,"timeout":0}

View file

@ -0,0 +1,22 @@
{ config, lib, pkgs, ... }:
with lib;
{
imports = [ ../../accounts/email-test-accounts.nix ];
config = {
home.username = "hm-user";
home.homeDirectory = "/home/hm-user";
programs.lieer.enable = true;
accounts.email.accounts = { "hm@example.com".lieer.enable = true; };
nmt.script = ''
assertFileExists home-files/Mail/hm@example.com/.gmailieer.json
assertFileContent home-files/Mail/hm@example.com/.gmailieer.json \
${./lieer-expected.json}
'';
};
}