Skip to content
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

nixos-install doesn't appear to idempotently set passwords #36493

Closed
CMCDragonkai opened this issue Mar 8, 2018 · 3 comments
Closed

nixos-install doesn't appear to idempotently set passwords #36493

CMCDragonkai opened this issue Mar 8, 2018 · 3 comments

Comments

@CMCDragonkai
Copy link
Member

On 17.09 ISO. I tried running nixos-install multiple times trying different password settings for a declared user configuration.

Even when I removed everything and just said password = "abc123"; and after nixos-install, reboot, I still couldn't login. (It is possible that something else I'm doing is wrong, because hashedPassword doesn't work either).

Another major problem is the fact that running nixos-install each time results in reinstalling everything. This is pretty annoying as it lengthens the debug cycle when you can't actually login to your target system. There should be a way to continue from where it left off inside the /mnt/nix/store.

@lheckemann
Copy link
Member

lheckemann commented Mar 9, 2018

This is expected behaviour:

If the option users.mutableUsers is true, the password defined in one of the three options will only be set when the user is created for the first time.

Set users.mutableUsers to false if you want idempotency.

Another major problem is the fact that running nixos-install each time results in reinstalling everything

This is a known bug in the installer #27307 which should be fixed by #34636.

@CMCDragonkai
Copy link
Member Author

It has always been false. I never mutable users to true. This problem is about nixos-install not installing a new password even when mutable users is false.

@CMCDragonkai
Copy link
Member Author

Not relevant to me anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants