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

Multi-User? #8

Closed
usmcamp0811 opened this issue Aug 18, 2023 · 5 comments
Closed

Multi-User? #8

usmcamp0811 opened this issue Aug 18, 2023 · 5 comments

Comments

@usmcamp0811
Copy link

usmcamp0811 commented Aug 18, 2023

I'm impressed with your recent work in fully integrating standalone home-manager support. I'm curious if you might have any insights or suggestions on how to handle multi-user scenarios, specifically with LDAP. In my current setup, I rely on an LDAP user as my primary account across all systems. I adopted this approach to overcome the challenges of synchronizing user data across different distributions, which previously led to NFS permission issues. My current solution involves configuring a local user in my Nix setup and properly setting up LDAP. I then utilize home-manager's standalone mode to individually configure the LDAP user. While this method is functional, I'm exploring ways to streamline the configuration of both a local user and at least one LDAP user within my config flake (which, I've heavily borrowed from here 😀). Any thoughts or guidance would be greatly appreciated but don't want you to feel like I'm asking you to go do anything. I'm still learning Nix and just looking to see if you had any ideas.

Thanks

@usmcamp0811
Copy link
Author

Of course.. I muck with this all day and right after I decided to ask some questions I think I figured it out. Seems I am able to make a user config in ./homes/x86_64-linux/<username>@<fictional hostname> and nothing complains and I can still do things like nix run .\#[email protected].

Still curious your thoughts, but feel free to close this..

@jakehamilton
Copy link
Owner

Hey there! I'm not too familiar with this kind of setup unfortunately. I think you may have found a solution that works (even if it's not perfect) with custom homes and executing the activation script manually.

I have had multi-user on my mind, but beyond the current support in Snowfall Lib I don't think anything will be changing for a while.

@adarah
Copy link

adarah commented Mar 26, 2024

I don't quite get the details of OPs setup, but I managed to get two different home-manager users working in the same host with the dev branch of snowfall lib: snowfallorg/lib#44

@jakehamilton
Copy link
Owner

I'm going to close this issue out. As @adarah mentioned, the dev branch of Snowfall Lib (and therefore the v3 release when it is out) supports home-manager more fully and can enable a multi-user setup. I don't have plans to do so in my config since I'm the only user, but I believe that all the tools are in place to make it happen now!

@bestlem
Copy link

bestlem commented Apr 23, 2024

I think the thing that is needed for multi-user is some documentation of where you set user. For example in your config you have two user options defined one in home and one in nixes plus I think in the library you explicitly call some user/default.nix

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

4 participants