snowfallorg / nix-software-center

A simple gtk4/libadwaita software center to easily install and manage nix packages
GNU General Public License v3.0
572 stars 16 forks source link

[Feature Request] Ability to install packages using nix profile into /nix/var/nix/profiles/default #48

Open dnkmmr69420 opened 1 year ago

dnkmmr69420 commented 1 year ago

There are only two options, you can install software on the user nix profile and you can install packages into configuration.nix. There is no option that involves running nix profile as a root user to install packages system wide without having configuration.nix managing the packages. When nix profile or nix-env is ran as root, it uses a system wide local profile called /nix/var/nix/profiles/default. So it would be nice if that is an option to do it. It just needs to run nix profile or nix-env as root instead of the current user.