Set static UIDs for users in pvv-nixos-config #258

Open
opened 2025-12-22 05:30:29 +01:00 by oysteikt · 3 comments
Owner

It would be great if the uids of the users in pvv nixos config could be deterministic.

It would be great if the uids of the users in pvv nixos config could be deterministic.
oysteikt added the nixos label 2025-12-22 05:30:29 +01:00
oysteikt added this to the Kanban project 2025-12-22 05:30:29 +01:00
oysteikt moved this to Medium priority in Kanban on 2025-12-22 07:50:19 +01:00
Owner

Why? That allows us to build systems that assume fixed/static UIDs, and UIDs that match across different systems. Without this, we are forced to write/use/configure everything properly instead, without shortcuts.

Maybe NFS without kerberos user-mapping is a necessary evil that forces this, though?

Why? That allows us to build systems that assume fixed/static UIDs, and UIDs that match across different systems. Without this, we are forced to write/use/configure everything properly instead, without shortcuts. Maybe NFS without kerberos user-mapping is a necessary evil that forces this, though?
Author
Owner

I am not talking about the system users of services, I am talking about the sysadmin "normal" users. We do not have anything that depends on these uids, except that imperatively it makes it less easy to sync. Deletion of users across machines will also be easier if we know everything is the same. There is no good reason why the order of uids should be determined by the times and order the machines were set up in, apart from any added difficulty with writing a new number every time a new user is added.

I am not talking about the system users of services, I am talking about the sysadmin "normal" users. We do not have anything that depends on these uids, except that imperatively it makes it less easy to sync. Deletion of users across machines will also be easier if we know everything is the same. There is no good reason why the order of uids should be determined by the times and order the machines were set up in, apart from any added difficulty with writing a new number every time a new user is added.
Owner

Yes, we are talking about the same users, and I am asking if it is useful for anything other than

  • NFS mounted homedirs
  • Dirty hacks

(There is a slight implication that dirty hacks are bad, which might be wildly inaccurate)

Yes, we are talking about the same users, and I am asking if it is useful for anything other than - NFS mounted homedirs - Dirty hacks (There is a slight implication that dirty hacks are bad, which might be wildly inaccurate)
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Drift/issues#258