fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Robert Helgessontests: allow testing assertionsef4370be

master
561 B26 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6  imports = [ ../../accounts/email-test-accounts.nix ];
7
8  config = {
9    accounts.email.accounts = {
10      "hm@example.com" = {
11        getmail = {
12          enable = true;
13          mailboxes = [ "INBOX" "Sent" "Work" ];
14          destinationCommand = "/bin/maildrop";
15          delete = false;
16        };
17        imap.port = 993;
18      };
19    };
20
21    nmt.script = ''
22      assertFileExists home-files/.getmail/getmailrc
23      assertFileContent home-files/.getmail/getmailrc ${./getmail-expected.conf}
24    '';
25  };
26}