1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 03:29: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 {
type = types.str;
default = "${config.home.homeDirectory}/Maildir";
defaultText = "$HOME/Maildir";
defaultText = "Maildir";
apply = p:
if hasPrefix "/" p then p else "${config.home.homeDirectory}/${p}";
description = ''
The base directory for account maildir directories. May be a
relative path, in which case it is relative the home
directory.
relative path (e.g. the user setting this value as "MyMaildir"),
in which case it is relative the home directory (e.g. resulting
in "~/MyMaildir").
'';
};