Open ppenguin opened 1 year ago
I noticed that here (https://github.com/NixOS/nixpkgs/blob/81e8f48ebdecf07aab321182011b067aafc78896/nixos/modules/config/users-groups.nix#L355C27-L355C27) the default for normal users is to generate sub*ids if none are specified and not explicitly disabled, which is ok (most system users wouldn't need to run podman), but I coundn't find where the actual generation script resides...
Yep, ran into this too. The bit that updates user info is here by calling this perl script.
Describe the bug
Setting
users.users.<name>.autoSubUidGidRange = true
for a few normal and a few system users creates overlapping Ids, where it appears that the "counter" starts at the beginning for the system and normal user category.Steps To Reproduce
Steps to reproduce the behavior:
users.users.<name>.autoSubUidGidRange = true
for a few normal usersusers.users.<name>.autoSubUidGidRange = true
for a few system users/etc/sub*id
Expected behavior
ID ranges count linearly to avoid overlap, considering both system and normal users the same.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Notify maintainers
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.