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

Add note for necessary step of setting password #87863

Open
wants to merge 1 commit into
base: master
from

Conversation

@FranklinYu
Copy link

FranklinYu commented May 15, 2020

Motivation for this change

#39915 (comment)

Things done

I don’t think they applies since this is only documentation update.

  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
@rnhmjoj
Copy link
Contributor

rnhmjoj commented May 28, 2020

I would rephrase the note to mention mutableUsers = false, and users.users.passwordFile, which is probably more frequent use-case than an unattended installation.

Also sudo nixos-enter --command passwd seems friendlier than chpasswd.

@FranklinYu
Copy link
Author

FranklinYu commented Jun 4, 2020

@rnhmjoj Sorry, I’m not sure how these two options are related to this note here. This note is only about the step of running

# nixos-install

as well as steps after that. IMO the two configuration options you mention should be specified in the step above it, namely

You should then edit /mnt/etc/nixos/configuration.nix to suit your needs:

# nano /mnt/etc/nixos/configuration.nix

As for the recommendation of nixos-enter, I don’t see why we would prefer it over simply not using --no-root-passwd, since both are intended for the same scenario (interactive installation).

I’m not yet familiar with NixOS so please don’t hesitate to correct my mistakes above.

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

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.