1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-03 00:19:46 +01:00
home-manager/tests/modules/programs/getmail.nix
dnsdhrj e413a1408e
getmail: fix port option type mismatch
Fixed type mismatch in commit 410f573226.
Added test case to ensure it works well.

(cherry picked from commit a177d0282f)
2019-10-29 23:10:23 +01:00

29 lines
654 B
Nix

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