-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
openssh: build with correct passwd path #308325
Conversation
As this is a change to openssh which requires massive rebuilds, the PR should go to staging. Marking as draft in the meantime. |
Just realised I did exactly what you said not to do. Will sort shortly. |
That was true in the past but we are now below 500 rebuilds which is generally fine to go master. The general rule of thumb is, that when the rebuild counts are red, it needs to to go to staging. |
Ok... so back against master then? |
359c282
to
abef7d1
Compare
} // lib.optionalAttrs isNixos { | ||
# openssh calls passwd to allow the user to reset an expired password, but nixos | ||
# doesn't ship it at /usr/bin/passwd. | ||
PATH_PASSWD_PROG = "/run/wrappers/bin/passwd"; |
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.
I always find it a bit cleaner to not use optionalAttrs for such things. We can probably place this inside of env and use optionalAttrs there. What do you think?
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.
Yeah, that's much nicer. Wasn't aware of env
!
Description of changes
Tentative fix for #308247
Points openssh at nixos'
passwd
so it can allow users to change expired passwords on loginnix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 馃憤 reaction to pull requests you find important.