Is there a command that can be used to figure out which packages are installed system-wide in NixOS?
For instance, I can list packages installed for my current user with
nix-env -q. I don't know of any way to list packages installed on the whole system from
There are two separate instances I would want to use this:
Let's say I add a package to
environment.systemPackages, but I forget whether I have run
nixos-rebuild switchyet. It would be nice if there was a command I could run to check whether the package is in the system environment.
/etc/nixos/configuration.nix. Without looking at the option in nixpkgs, I would guess that this option would set the
bash-completionpackage to be installed. It would be nice if there was a command that I could run that checked whether the
bash-completionpackage actually was in the system environment.