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 user-module import #109

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

Fix user-module import #109

wants to merge 1 commit into from

Conversation

mtaku3
Copy link

@mtaku3 mtaku3 commented Jun 18, 2024

I was having an issue with user-module import, which is home-manager.users.${user} are set properly, but snowfallorg.users.${user}.home.config aren't.
This is a fix for it.

related: #104

@jakehamilton
Copy link
Member

Thanks for this! I need to test this out and verify things are working as expected with the rest of the system.

@AurelienConte
Copy link

AurelienConte commented Oct 28, 2024

Any ETA on this ? @jakehamilton i think this would be cool if this can be checked since many issues are concerning problems about applying home manager configuration.

Personally, i use this and this fixed my issues with home manager not loading

@jakehamilton
Copy link
Member

@AurelienConte thanks for the reminder! I will test it today and try to get things merged in if there aren't any issues :)

config = builtins.removeAttrs home-config ["imports"];
});

sharedModules = optional config.snowfallorg.users.${user-name}.home.enable user-module;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will include the user-specific module for all home-manager users. I don't think we can use this solution since it would break multi-user setups.

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.

3 participants