Generate and merge userborn configuration #4

Open
opened 2026-05-29 04:47:58 +02:00 by oysteikt · 0 comments
Owner

It would be kinda nice to use this to pass user configuration to userborn for our nixos machines. Since nixos already generates a json file in the nix store, and since we might not want to put all generated users into the nix store, we should add some logic that can both generate userborn compatible json, and merge them with existing entries. This is intended to be run in the ExecStartPre field of userborn. Feel free to throw errors on UID/GID clashes, etc.

It would be kinda nice to use this to pass user configuration to [userborn](https://github.com/nikstur/userborn) for our nixos machines. Since nixos already generates a json file in the nix store, and since we might not want to put all generated users into the nix store, we should add some logic that can both generate userborn compatible json, and merge them with existing entries. This is intended to be run in the `ExecStartPre` field of userborn. Feel free to throw errors on UID/GID clashes, etc.
oysteikt added the feature request label 2026-05-29 04:47:58 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Projects/passwd2systemd-users#4