Open MAHDTech opened 5 months ago
Try adding lib.literalExpression?
homeDirectory = lib.literalExpression "/home/<username>@<domain>"
It might be preferable to do:
homeDirectory = ''/home/<username>@<domain>''
but I don't know if that works.
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.
@IldenH - not OP but I have the same issue I've tried the following:
homeDirectory = ''/home/<username>@<domain>''
- unexpected @
errorhomeDirectory = ''/home/<username>\@<domain>''
- Literally inputs the \
so the set path doesn't match expectedhomeDirectory = lib.literalExpression "/home/<username>@<domain>"
- Not sure how to do this one, lib
wasn't available in the namespace and when I search I only see lib.options.LiteralExpression
in the docs which appears to be for adding docstrings so I'm not sure how to apply it.Happy to test other approaches if there are other suggestions
My error is a little different than the one in the original posting:
error: syntax error, unexpected '@', expecting end of file
at «string»:1:14:
1| /home/<user>@<domain>/.local/share/home-manager/news-read-ids
| ^
That file's generated as part of a bash script here I believe, so I assume it's something to do about how nix path objects are getting turned into bash string variables that's causing the issue, but I'm out of my depth beyond that.
Are you following the right branch?
Is there an existing issue for this?
Issue description
Hi,
How can I escape the '@' symbol in the home directory? I've tried single quote and backslash already, is there another character to use?
I'm using home-manager in an environment where the home directories are like this
The error I receive is this
The only location I see to have it configured with the '@' is the
homeDirectory
field.Maintainer CC
No response
System information