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:
parent
0056a5aea1
commit
60a939bd01
9 changed files with 192 additions and 0 deletions
1
tests/modules/programs/lieer/default.nix
Normal file
1
tests/modules/programs/lieer/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ lieer = ./lieer.nix; }
|
||||
1
tests/modules/programs/lieer/lieer-expected.json
Normal file
1
tests/modules/programs/lieer/lieer-expected.json
Normal 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}
|
||||
22
tests/modules/programs/lieer/lieer.nix
Normal file
22
tests/modules/programs/lieer/lieer.nix
Normal 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}
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue