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

Permission denied #116

Closed
srghma opened this issue Nov 4, 2017 · 4 comments
Closed

Permission denied #116

srghma opened this issue Nov 4, 2017 · 4 comments

Comments

@srghma
Copy link
Contributor

srghma commented Nov 4, 2017

error: creating symlink from ‘/etc/nixos/result.tmp-27440-1730106898’ to ‘/nix/store/ci9j6ms78lyklicjq8b6i5n3z4xh85ll-home-manager-generation’: Permission denied
user groups - users wheel disk audio networkmanager

it's blocking issue since

$ sudo home-manager build
No configuration file found. Please create one at /root/.config/nixpkgs/home.nix
@srghma srghma changed the title build fails without sudo Permission denied Nov 4, 2017
@srghma
Copy link
Contributor Author

srghma commented Nov 4, 2017

Resolved by adding myself to

nix.trustedUsers = [ "root" "@wheel" ];

@srghma srghma mentioned this issue Nov 4, 2017
@rycee rycee closed this as completed in 14083a0 Nov 5, 2017
@rycee
Copy link
Member

rycee commented Nov 5, 2017

I think this was mainly a case of poor error reporting in Home Manager. The fix I made changes

rycee@beta:/$ hm build
error: creating symlink from ‘/result.tmp-508-1612533748’ to ‘/nix/store/yp4phas300vg989lfcix0a5rhpjgrknq-home-manager-generation’: Permission denied

to

rycee@beta:/$ hm build
Cannot run build in read-only directory

which hopefully better indicates the problem. Thanks for reporting the issue!

@srghma
Copy link
Contributor Author

srghma commented Nov 5, 2017

Thank you

@novenix
Copy link

novenix commented Jan 3, 2022

@rycee
That was pretty accurate, thank you.
If you have sudo, you can chmod 777 /path/of/your/repo/to/build, that was my solution.
Thanks to @rycee

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 a pull request may close this issue.

3 participants