lieer: change settings to freeform type
Also add missing options.
This commit is contained in:
parent
4b964d2f7b
commit
514acaebb9
6 changed files with 241 additions and 123 deletions
|
|
@ -1 +1,18 @@
|
|||
{"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}
|
||||
{
|
||||
"account": "hm@example.com",
|
||||
"drop_non_existing_label": false,
|
||||
"file_extension": "",
|
||||
"ignore_empty_history": false,
|
||||
"ignore_remote_labels": [
|
||||
"CATEGORY_FORUMS",
|
||||
"CATEGORY_PROMOTIONS",
|
||||
"CATEGORY_UPDATES",
|
||||
"CATEGORY_SOCIAL",
|
||||
"CATEGORY_PERSONAL"
|
||||
],
|
||||
"ignore_tags": [],
|
||||
"local_trash_tag": "trash",
|
||||
"remove_local_messages": true,
|
||||
"replace_slash_with_dot": false,
|
||||
"timeout": 600
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ with lib;
|
|||
|
||||
config = {
|
||||
programs.lieer.enable = true;
|
||||
programs.lieer.package = pkgs.writeScriptBin "dummy-gmailieer" "";
|
||||
|
||||
accounts.email.accounts."hm@example.com" = {
|
||||
flavor = "gmail.com";
|
||||
|
|
@ -14,14 +15,11 @@ with lib;
|
|||
notmuch.enable = true;
|
||||
};
|
||||
|
||||
nixpkgs.overlays = [
|
||||
(self: super: { gmailieer = pkgs.writeScriptBin "dummy-gmailieer" ""; })
|
||||
];
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/Mail/hm@example.com/.gmailieer.json
|
||||
assertFileContent home-files/Mail/hm@example.com/.gmailieer.json \
|
||||
${./lieer-expected.json}
|
||||
assertFileContent home-files/Mail/hm@example.com/.gmailieer.json ${
|
||||
./lieer-expected.json
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue