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

Add options to the nix package manager installer for better integration with other distros #6028

Open
mpedramfar opened this issue Jan 31, 2022 · 0 comments

Comments

@mpedramfar
Copy link

There are two improvements that come to my mind that I think would be good to have as options within the install script, or if not, at least deserve some explanation in the documentation.

  1. Desktop files for GUI applications:

This has been mentioned before #3910 and the answer was that basically in a default installation, we don't want to change too many things out of fear of breaking the host system. What I'm suggesting is either an option in the install script or better documentation so that users won't have search through github issues or stack exchange to add this functionality.

  1. sudo vs. sudo -i:

As I understand, sudo clears environment variables for security reasons. In particular, it sets the PATH variable to a default value specified in the /etc/sudoers file. Because of that, simply running sudo command doesn't work with anything installed with nix, since it can't find the executables. One solution is to simply modify sudoers file which can be done within the install script as a non-default option. The alternative to changing sudoers file, as I understand, is to replace all instances of sudo command with sudo -i command in scripts and other places which is not ideal.

@stale stale bot added the stale label Aug 1, 2022
@stale stale bot removed the stale label Dec 5, 2022
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