1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-13 02:03:38 +02:00
home-manager/tests/modules/programs/mu/basic-configuration.nix
2022-11-07 15:09:31 +01:00

25 lines
541 B
Nix

{ ... }:
{
imports = [ ../../accounts/email-test-accounts.nix ];
accounts.email.accounts = {
"hm@example.com" = {
mu.enable = true;
aliases = [ "foo@example.com" ];
};
};
programs.mu.enable = true;
test.stubs.mu = { };
nmt.script = ''
assertFileContains activate \
'if [[ ! -d "/home/hm-user/.cache/mu" ]]; then'
assertFileContains activate \
'$DRY_RUN_CMD @mu@/bin/mu init --maildir=/home/hm-user/Mail --my-address=hm@example.com --my-address=foo@example.com $VERBOSE_ARG;'
'';
}