Open qaristote opened 1 year ago
if (userName != null) then userName else address
should work, do you want to open a PR?
Yeah my bad. Another solution would be to set the default value of userName
to the value of address
. I'd rather let the maintainers choose between these solutions and create the PR accordingly !
I don't recall why the userName
option has type types.nullOr types.str
. Seems to me that it should always be given. Then you would have gotten a better error message. It doesn't seem so nice to just assume that the user name is the same as the email address, better make it clear that it is needed.
Thank you for your contribution! I marked this issue as stale due to inactivity. Please be considerate of people watching this issue and receiving notifications before commenting 'I have this issue too'. We welcome additional information that will help resolve this issue. Please read the relevant sections below before commenting.
* If this is resolved, please consider closing it so that the maintainers know not to focus on this. * If this might still be an issue, but you are not interested in promoting its resolution, please consider closing it while encouraging others to take over and reopen an issue if they care enough. * If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.
* If you are also experiencing this issue, please add details of your situation to help with the debugging process. * If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.
Don't be afraid to manually close an issue, even if it holds valuable information. Closed issues stay in the system for people to search, read, cross-reference, or even reopen – nothing is lost! Closing obsolete issues is an important way to help maintainers focus their time and effort.
I don't recall why the
userName
option has typetypes.nullOr types.str
. Seems to me that it should always be given. Then you would have gotten a better error message. It doesn't seem so nice to just assume that the user name is the same as the email address, better make it clear that it is needed.
Should i make a PR that changes the type to just be types.str
?
I have defined an email account with
but didn't specify a
userName
as for IMAP and SMTP it's the same as the address. I have also enabled git withWhen building my configuration, I got
I believe the lines at fault are the following: https://github.com/nix-community/home-manager/blob/ab7c8f4a8427bfcaf01a46bab974298cc27bc1f5/modules/programs/git.nix#L435-L464
and that a simple fix would be to replace
with
but I'll let you see that for yourself :)