diff options
Diffstat (limited to 'infra/libkookie/home-manager/tests/modules/programs/neomutt/neomutt-with-msmtp.nix')
-rw-r--r-- | infra/libkookie/home-manager/tests/modules/programs/neomutt/neomutt-with-msmtp.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/infra/libkookie/home-manager/tests/modules/programs/neomutt/neomutt-with-msmtp.nix b/infra/libkookie/home-manager/tests/modules/programs/neomutt/neomutt-with-msmtp.nix new file mode 100644 index 000000000000..22f65599cf4b --- /dev/null +++ b/infra/libkookie/home-manager/tests/modules/programs/neomutt/neomutt-with-msmtp.nix @@ -0,0 +1,39 @@ +{ config, lib, pkgs, ... }: + +with lib; + +{ + imports = [ ../../accounts/email-test-accounts.nix ]; + + config = { + accounts.email.accounts = { + "hm@example.com" = { + primary = true; + msmtp.enable = true; + neomutt = { + enable = true; + extraConfig = '' + color status cyan default + ''; + }; + imap.port = 993; + }; + }; + + programs.neomutt.enable = true; + + nixpkgs.overlays = + [ (self: super: { neomutt = pkgs.writeScriptBin "dummy-neomutt" ""; }) ]; + + nmt.script = '' + assertFileExists home-files/.config/neomutt/neomuttrc + assertFileExists home-files/.config/neomutt/hm@example.com + assertFileContent home-files/.config/neomutt/neomuttrc ${ + ./neomutt-expected.conf + } + assertFileContent home-files/.config/neomutt/hm@example.com ${ + ./hm-example.com-msmtp-expected.conf + } + ''; + }; +} |