mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 13:39:46 +01:00
36 lines
671 B
Nix
36 lines
671 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
{
|
||
|
imports = [ ../accounts/email-test-accounts.nix ];
|
||
|
|
||
|
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 = {
|
||
|
"hm@example.com".mbsync = {
|
||
|
enable = true;
|
||
|
};
|
||
|
|
||
|
hm-account.mbsync = {
|
||
|
enable = true;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
nmt.script = ''
|
||
|
assertFileExists home-files/.mbsyncrc
|
||
|
assertFileContent home-files/.mbsyncrc ${./mbsync-expected.conf}
|
||
|
'';
|
||
|
};
|
||
|
}
|