I see “grub” under /nix/store. But nix-env -q
by root user shows nothing.
What is the way to manage “grub”?
nix-env
is used to manage user environments (including root’s).
grub is gonna be managed by your /etc/nixos/configuration.nix
. It doesn’t necessarily need to be listed in systemPackages
, some programs are installed solely based on some configuration option or simply as a dependency of NixOS itself. In your case you will probably have something like boot.loader.grub.*
set in your configuration.nix
1 Like