mirror of
https://github.com/nix-community/home-manager
synced 2024-11-18 17:19:45 +01:00
27 lines
598 B
Nix
27 lines
598 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;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
nmt.script = ''
|
||
|
assertFileExists home-files/.getmail/getmailhm@example.com
|
||
|
assertFileContent home-files/.getmail/getmailhm@example.com ${./getmail-expected.conf}
|
||
|
'';
|
||
|
};
|
||
|
}
|