nixos/gdm: UID mismatch of gdm-greeter-* users due to update
Nobody has claimed this yet.
- Dominant language
- Nix
- Stars
- 26.2k
- Forks
- 20.1k
- PR merge metrics
- PR metrics pending
Description
Nixpkgs version
- Unstable (26.11)
Describe the bug
I get a weird warning of not applying an UID change of the users gdm-greeter-N:
# nixos-rebuild test
building the system configuration...
Checking switch inhibitors... done
stopping the following units: accounts-daemon.service, systemd-tmpfiles-resetup.service
activating the configuration...
warning: not applying UID change of user ‘gdm-greeter-2’ (60580 -> 60579) in /etc/passwd
warning: not applying UID change of user ‘gdm-greeter-3’ (60581 -> 60580) in /etc/passwd
warning: not applying UID change of user ‘gdm-greeter-4’ (60582 -> 60581) in /etc/passwd
removing user ‘gdm-greeter-1’
setting up /etc...
reloading user units for johannes...
reloading the following user units: dbus-broker.service
restarting sysinit-reactivation.target
reloading the following units: dbus-broker.service
restarting the following units: polkit.service
starting the following units: accounts-daemon.service, systemd-tmpfiles-resetup.service
the following new units were started: NetworkManager-dispatcher.service
Done. The new configuration is /nix/store/p2zz15dcghcx66s92rw064mdjmrl9bh7-nixos-system-johannes-pc-26.05.20260523.64c08a7
To track the warning down I have performed a git bisect of my configuration and the issue was introduced by this bad 'nix flake update' commit.
The bug was probably introduced by commit 3fb5cf873d8eab026954ca596e4e662fb96efbd8.
Steps to reproduce
- Switch to nixpkgs revision 29916453413845e54a65b8a1cf996842300cd299
- Enable GDM and run
nixos-rebuild - Switch to nixpkgs revision 64c08a7ca051951c8eae34e3e3cb1e202fe36786
nixos-rebuildprints a warning about unapplied UID changes of gdm-greetrer-N users
Expected behaviour
Updating shall not (try to) change the UID of users created by the GDM module.
Screenshots
No response
Relevant log output
Additional context
No response
System metadata
- system:
"x86_64-linux" - host os:
Linux 7.0.10, NixOS, 26.05 (Yarara), 26.05.20260523.64c08a7 - multi-user?:
yes - sandbox:
yes - version:
nix-env (Nix) 2.34.7 - channels(root):
"nixos" - nixpkgs:
/nix/store/81sr43harc753claf8bzyv3mrnjzq652-source
Notify maintainers
@bobby285271 @dasj19 @hedning @jtojnar
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
- I assert that this is a bug and not a support request.
- I assert that this is not a duplicate of an existing issue.
- I assert that I have read the NixOS Code of Conduct and agree to abide by it.
- I assert that I have read the automation/AI policy and that this issue report complies with it.
Is this issue important to you?
Add a 👍 reaction to issues you find important.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the warning by switching between the two nixpkgs revisions listed in the steps and running nixos-rebuild. Compare the GDM module changes introduced by commit 3fb5cf873d8eab026954ca596e4e662fb96efbd8 and verify that updating does not attempt to change the UIDs of gdm-greeter-N users.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100