Skip to content

Conversation

ErikMcClure
Copy link
Contributor

/mnt/wslg/runtime-dir is owned by user ID 1000, as noted in this post, which is always the first user created on the system. I changed my configuration.nix to use a different user name by using the provided defaultUser parameter. However, on rebuild, this causes NixOS to create an entirely new user with ID 1001, which then causes strange behavior with wslg, because programs like emacs will emit errors like:

unable to create directory "/mnt/wslg/runtime-dir/dconf"

This is because they can't write to runtime-dir. The fix for this is easy: simply force the default user to have ID 1000, which fixes the problem.

@nzbr nzbr added the bug Something isn't working label Apr 22, 2022
@nzbr nzbr merged commit 69783cf into nix-community:main Apr 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants