mirror of
https://github.com/nix-community/home-manager
synced 2024-11-09 20:59:44 +01:00
ef4370bedc
By default tests are expected to produce no assertion. This also updates the existing tests to match.
26 lines
561 B
Nix
26 lines
561 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
imports = [ ../../accounts/email-test-accounts.nix ];
|
|
|
|
config = {
|
|
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/getmailrc
|
|
assertFileContent home-files/.getmail/getmailrc ${./getmail-expected.conf}
|
|
'';
|
|
};
|
|
}
|