1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-27 12:19:48 +01:00
home-manager/tests/modules/programs/mujmap/mujmap-fqdn-and-session-url-specified.nix

27 lines
632 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
with lib;
{
imports = [ ../../accounts/email-test-accounts.nix ];
config = {
programs.mujmap.enable = true;
programs.mujmap.package = config.lib.test.mkStubPackage { };
accounts.email.accounts."hm@example.com" = {
jmap.host = "example.com";
jmap.sessionUrl = "https://jmap.example.com/";
mujmap.enable = true;
notmuch.enable = true;
};
nmt.script = ''
assertFileExists home-files/Mail/hm@example.com/mujmap.toml
assertFileContent home-files/Mail/hm@example.com/mujmap.toml ${
./mujmap-defaults-expected.toml
}
'';
};
}