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