about summary refs log tree commit diff
path: root/home/mail/default.nix
blob: 4f36e8794153080a785008727148bebc2eb0fffa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
{ config, lib, ... }:
let
  cfg = config.my.home.mail;
  mkRelatedOption = desc: lib.mkEnableOption desc // { default = cfg.enable; };
in {
  imports = [ ./accounts ];
  options.my.home.mail = with lib; {
    enable = mkEnableOption "email configuration";
  };
  config = { accounts.email = { maildirBasePath = ".mail"; }; };
}