Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use correct username for profile #1355

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

toodeluna
Copy link

This pull request fixes an inconsistency I've found between NixOS and Nix Darwin.

{
  users.users.myUser = {
    name = "actual_name";
  };
}

On NixOS this code will create the folder /etc/profiles/per-user/actual_name whereas on nix-darwin it creates /etc/profiles/per-user/myUser. This causes problems with certain modules in home-manager for example, which expects the actual_name folder to exist.

@Enzime
Copy link
Collaborator

Enzime commented Feb 28, 2025

I think this isn’t the only place it is wrong, if you could fix all the places it is wrong that would be great

See #294

@toodeluna
Copy link
Author

The username should now be correct everywhere. I tested it with my own system flake and it all seems to work as expected now, but let me know if I've missed any other places.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants