refine the warning on using nix-env (#619)

* refine the warning on using `nix-env`

also highlight the command name

* Format

---------

Co-authored-by: Naïm Favier <n@monade.li>
This commit is contained in:
Valentin Gagarin 2023-02-16 10:00:06 +01:00 committed by GitHub
parent bba9a1d44b
commit ad5fab6ce5
Failed to generate hash of commit

View file

@ -603,15 +603,17 @@ viewResultItem nixosChannels channel showInstallDetails show item =
] ]
[ p [] [ p []
[ strong [] [ text "Warning:" ] [ strong [] [ text "Warning:" ]
, text " Using "
, code [] [ text "nix-env" ]
, text """ , text """
Using nix-env permanently modifies a permanently modifies a local profile of installed packages.
local profile of installed packages. This must be updated and maintained by the user in the same
This must be cleaned up, updated and way as with a traditional package manager, foregoing many
maintained by the user, in the same of the benefits that make Nix uniquely powerful. Using
way as a traditional package """
manager. Using nix-shell or a NixOS , code [] [ text "nix-shell" ]
configuration is recommended , text """
instead. or a NixOS configuration is recommended instead.
""" """
] ]
] ]