You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.0 KiB
41 lines
1.0 KiB
{ config, lib, pkgs, home-manager, ... } @ args:
|
|
|
|
let cfg = config.libkookie.workstation.mail;
|
|
in
|
|
with lib;
|
|
{
|
|
options.libkookie.workstation.mail = {
|
|
enable = mkEnableOption "libkookie mail system handling";
|
|
|
|
configPath = mkOption {
|
|
type = types.path;
|
|
description = ''
|
|
Set of configuration to configure sieve rules, and mail settings
|
|
|
|
These are not contained in this repository to avoid having to
|
|
make them public.
|
|
'';
|
|
};
|
|
|
|
authPath = mkOption {
|
|
type = types.str;
|
|
default = "/var/lib/mail/";
|
|
description = ''
|
|
Path to the authentication secret. This is not an actual path,
|
|
to avoid it being copied to the nix store for any user to read.
|
|
'';
|
|
};
|
|
|
|
mailArchive = mkOption {
|
|
type = types.str;
|
|
description = "Path to the mail archive to sync into";
|
|
};
|
|
|
|
access = mkOption {
|
|
type = types.attrs;
|
|
description = "User and group to give the mail user for permissions";
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable (import ./core args);
|
|
}
|
|
|