home-manager/tests/modules/programs/neverest/basic.nix
2024-04-21 11:43:27 +02:00

35 lines
703 B
Nix

{ config, lib, pkgs, ... }:
with lib;
{
imports = [ ../../accounts/email-test-accounts.nix ];
programs.neverest = {
enable = true;
accounts = {
"imap-maildir" = {
left = {
backend = "imap";
name = "hm@example.com";
settings = { backend.port = 993; };
};
right = {
backend = "maildir";
name = "hm@example.com";
};
settings = { left.backend.port = 143; };
};
};
};
test.stubs.neverest = { };
nmt.script = ''
assertFileExists home-files/.config/neverest/config.toml
assertFileContent home-files/.config/neverest/config.toml ${
./basic-expected.toml
}
'';
}