mirror of
https://github.com/nix-community/home-manager
synced 2024-11-24 12:09:46 +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
601 B
Nix
28 lines
601 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/getmailhm@example.com
|
|
assertFileContent home-files/.getmail/getmailhm@example.com ${
|
|
./getmail-expected.conf
|
|
}
|
|
'';
|
|
};
|
|
}
|