-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add a --user flag to the home-manager cli #5878
Comments
I'm not sure I fully understand your situation, but couldn't you specify the user in the flake URI when invoking home-manager switch --flake <path/to/flake>#<user> |
Wait I still get a error:
|
Do not user Run without |
I need to use root privileges because it is located in /etc/nixos and I don't intend on giving other users who use my pc the ability to change their config, atleast not now. Regardless, as a different user, can you build configurations for other users? How? What I did won't work if I was another user |
I think you can If you insist, I guess you can |
|
How about |
|
Description
I want to run the home-manager switch command in my /etc/nixos or files which i am very restrictive of because of permissions, I would like to be able to specify the user when running a home-manager command so i dont get any situations like:
error: flake 'git+file:///etc/nixos' does not provide attribute 'packages.x86_64-linux.homeConfigurations."root".activationPackage', 'legacyPackages.x86_64-linux.homeConfigurations."root".activationPackage' or 'homeConfigurations."root".activationPackage'
.This can be done with a --user flag where you specify the user
I know this isnt the way you usually do things with home-manager but I have a place in my flake where home-manager is run, and the thing is, i usually have to do alot of hoop jumping to first initilize home-manager, before it can become aware of my config in my flake
The text was updated successfully, but these errors were encountered: