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

Multiple users for home-manager configs #66

Open
robled opened this issue Oct 6, 2024 · 2 comments
Open

Multiple users for home-manager configs #66

robled opened this issue Oct 6, 2024 · 2 comments

Comments

@robled
Copy link

robled commented Oct 6, 2024

I've been looking through the code and I'm trying to determine if it's possible to apply the same home-manager config to multiple users. I see the primary user defined in config.nix, but I'm not seeing a place to define a second user.

@srid
Copy link
Owner

srid commented Oct 6, 2024

Yea, this is something I want to do more cleanly as part of juspay/nixos-unified-template#93

Take a look at the linked (in the comment) juspay/remote-development repo for one approach, and let me know what you think in that issue.

@srid
Copy link
Owner

srid commented Oct 6, 2024

But assuming this is all you want:

the same home-manager config to multiple users.

You can achieve this using home-manager.sharedModules.

home-manager.sharedModules = [
self.homeModules.default
self.homeModules.linux-only
];

My above comment was about having separate home-manager config for each user, though it also addresses having a second user and so on in your original question.

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

No branches or pull requests

2 participants