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,16 +603,18 @@ 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.
"""
]
]
, div