1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-01 16:59:43 +01:00
home-manager/tests/modules/programs/getmail/getmail.nix

27 lines
561 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
with lib;
{
imports = [ ../../accounts/email-test-accounts.nix ];
config = {
accounts.email.accounts = {
"hm@example.com" = {
getmail = {
enable = true;
2020-02-02 00:39:17 +01:00
mailboxes = [ "INBOX" "Sent" "Work" ];
destinationCommand = "/bin/maildrop";
delete = false;
};
imap.port = 993;
};
};
nmt.script = ''
assertFileExists home-files/.getmail/getmailrc
assertFileContent home-files/.getmail/getmailrc ${./getmail-expected.conf}
'';
};
}