I am new to NixOs but recently trying to learn I find some inconsistency that can be easily replicated and not sure how to fix.
If I run as a normal user
nix-channel --update nixos
and try to run
nix-env -u ‘*’
I am getting the below warning
warning: name collision in input Nix expressions, skipping ‘/home/mudrii/.nix-defexpr/channels_root/nixos’
mudrii@nixos ~ $ nix-env -u '*'
mudrii@nixos ~ $ nix-channel --update nixos
unpacking channels...
mudrii@nixos ~ $ nix-env -u '*'
warning: name collision in input Nix expressions, skipping '/home/mudrii/.nix-defexpr/channels_root/nixos'
mudrii@nixos ~ $ sudo nix-channel --list
nixos https://nixos.org/channels/nixos-unstable
Note: User was created in /etc/nixos/configuration.nix
Any Idea why " nix-channel --update nixos" causes “name collision in input Nix expressions” ?