2019-01-31 02:08:40 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
2020-01-26 12:00:03 +01:00
|
|
|
imports = [ ../../accounts/email-test-accounts.nix ];
|
2019-01-31 02:08:40 +01:00
|
|
|
|
|
|
|
config = {
|
|
|
|
home.username = "hm-user";
|
|
|
|
home.homeDirectory = "/home/hm-user";
|
|
|
|
|
|
|
|
programs.mbsync = {
|
|
|
|
enable = true;
|
|
|
|
groups.inboxes = {
|
|
|
|
"hm@example.com" = [ "Inbox1" "Inbox2" ];
|
|
|
|
hm-account = [ "Inbox" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
accounts.email.accounts = {
|
2020-02-02 00:39:17 +01:00
|
|
|
"hm@example.com".mbsync = { enable = true; };
|
2019-01-31 02:08:40 +01:00
|
|
|
|
2020-02-02 00:39:17 +01:00
|
|
|
hm-account.mbsync = { enable = true; };
|
2019-01-31 02:08:40 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.mbsyncrc
|
|
|
|
assertFileContent home-files/.mbsyncrc ${./mbsync-expected.conf}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|