1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-26 21:19:45 +01:00

accounts.email: add clarifying documentation

Add clarifying documentation for maildirBasePath value. Also improve
default text.
This commit is contained in:
Jdogzz 2024-06-04 11:23:39 -07:00 committed by GitHub
parent 2cacdd6a27
commit a7117efb37
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -493,13 +493,14 @@ in {
maildirBasePath = mkOption { maildirBasePath = mkOption {
type = types.str; type = types.str;
default = "${config.home.homeDirectory}/Maildir"; default = "${config.home.homeDirectory}/Maildir";
defaultText = "$HOME/Maildir"; defaultText = "Maildir";
apply = p: apply = p:
if hasPrefix "/" p then p else "${config.home.homeDirectory}/${p}"; if hasPrefix "/" p then p else "${config.home.homeDirectory}/${p}";
description = '' description = ''
The base directory for account maildir directories. May be a The base directory for account maildir directories. May be a
relative path, in which case it is relative the home relative path (e.g. the user setting this value as "MyMaildir"),
directory. in which case it is relative the home directory (e.g. resulting
in "~/MyMaildir").
''; '';
}; };