mirror of
https://github.com/nix-community/home-manager
synced 2024-11-18 09:09:45 +01:00
95b95b1407
Before the XDG variables would be set from the user's environment, if available. This would break some tests. With this change the tests should be fully deterministic. Fixes #1190
28 lines
572 B
Nix
28 lines
572 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
imports = [ ../../accounts/email-test-accounts.nix ];
|
|
|
|
config = {
|
|
programs.mbsync = {
|
|
enable = true;
|
|
groups.inboxes = {
|
|
"hm@example.com" = [ "Inbox1" "Inbox2" ];
|
|
hm-account = [ "Inbox" ];
|
|
};
|
|
};
|
|
|
|
accounts.email.accounts = {
|
|
"hm@example.com".mbsync = { enable = true; };
|
|
|
|
hm-account.mbsync = { enable = true; };
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.mbsyncrc
|
|
assertFileContent home-files/.mbsyncrc ${./mbsync-expected.conf}
|
|
'';
|
|
};
|
|
}
|