-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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
systemd: enable sysusers by default #264879
Conversation
i just read through the notes you provided... sounds really cool 👍
|
@nikstur - is there anywhere i can keep up to date on the developments mentioned in that pad? i would love to follow along with what y'all are working on there... 🤩 |
@aanderse I'll list all the associated PRs in the Pad. Otherwise, you can just follow my Nixpkgs activity I guess :D |
Broken by d43e323 |
What exactly is broken? |
It is now impossible to enable sysusers on a system that has "normal users", meaning that any system that uses perlless activation and/or immutable /etc will fail to build. |
They were not actual normal users because their uids was < 1000. So the "normal users" were a lie. |
Not if the uid was set manually, which was the case in my configuration. |
Irrespective of any workarounds, systemd-sysusers is not designed to create "normal" users. This PR makes this explicit. However, there is another solution to this problem. Once #332719 is merged, you can use Userborn to manage your users without Perl. |
It is still the case that before d43e323, upon setting (I was not present in whatever discussions led to this change; it feels like the general assumption is that I should have known this would happen.) I would like to request the following changes to the assertion added in d43e323 to avoid unexpectedly breaking people's configs with no warning:
|
I'll happily review a PR. Please understand, however, that my focus going forward will be Userborn as that's the solution to systemd-sysusers limitations.
With experimental features some breakage unfortunately has to be expected. |
Description of changes
Build systemd-sysusers by default. This is part of a larger project to remove Perl from the activation. See more details on this project here: https://pad.lassul.us/nixos-perlless-activation
I intend on using systemd-sysusers to create users and groups instead of users-groups.pl. Because changing the systemd derivation will cause a mass rebuild, I factored this into a separate PR.
Things done
nix.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/
)