-
-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: default user name isn't necessarily the same as user attr name #204
fix: default user name isn't necessarily the same as user attr name #204
Conversation
@KoviRobi I have opened a PR against yours that adds tests for this KoviRobi#2 |
Add tests for changing username and diverging user attr and name
I am actually doing the same so I am surprised that it works for me and not for you. |
@@ -153,7 +156,7 @@ with lib; { | |||
}) | |||
(mkIf cfg.nativeSystemd { | |||
wsl.wslConf = { | |||
user.default = cfg.defaultUser; | |||
user.default = config.users.users.${cfg.defaultUser}.name; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, probably because my user.users attr matches name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing the username has always worked fine, but having different username and attr hasn't
Me with my weird system again, sorry.