Error during (un)installing packages

Hello,

I have issue with installing/uninstalling packages. There is always “error: this derivation has bad ‘meta.outputsToInstall’”. Sudo command, updating nix-channel, nix-env and reboots didn’t help. Also, I couldn’t find any answer on the internet.
Please, check full output below. SteamOS 3.6, stable.

(deck@steamdeck ~)$ nix-env -q
brave-1.69.162
fuse-3.16.2
keepassxc-2.7.9
rclone-1.67.0
reaper-7.22
wine-wow-wayland-8.2
yabridge-5.1.0
yabridgectl-5.1.0
(deck@steamdeck ~)$ nix-env -e keepassxc-2.7.9
uninstalling ‘keepassxc-2.7.9’
error: this derivation has bad ‘meta.outputsToInstall’
(1)(deck@steamdeck ~)$ nix-env -e wine-wow-wayland-8.2
uninstalling ‘wine-wow-wayland-8.2’
error: this derivation has bad ‘meta.outputsToInstall’
(1)(deck@steamdeck ~)$ nix-env -e rclone-1.67.0
uninstalling ‘rclone-1.67.0’
error: this derivation has bad ‘meta.outputsToInstall’
(deck@steamdeck ~)$ nix-store --query --referrers /nix/store/p79hd0zfxiklqyy9fklzgnyd4l1gjxlw-keepassxc-2.7.9
/nix/store/p79hd0zfxiklqyy9fklzgnyd4l1gjxlw-keepassxc-2.7.9
/nix/store/z1pvny5qsni0m2gyqdmlw8wxbmaq3ybc-env-manifest.nix
/nix/store/0ynnysz65lxkim52j1jwy2hww0m1lhlj-user-environment
/nix/store/kfj4ni1rir8vp1bbzfndmvxki67a9smw-env-manifest.nix
/nix/store/1k2208nqyvabqwx307glayg4sr53bhj1-user-environment
/nix/store/9yqij2d64djjyxk6cwsk7xf0pnyl8xqh-env-manifest.nix
/nix/store/al1amn3akx93cgmvlbmgccb77rvzq4kf-env-manifest.nix
/nix/store/b9kcar89z7l9n5vqpf1pgglxyxb5f698-env-manifest.nix
/nix/store/aqmgacnfqibx901yg66ffmwy3hf5p9z2-user-environment
/nix/store/xg3w7hq542lbcf1fiwcas9mwnfmz2241-env-manifest.nix
/nix/store/bd8zzyq7whpjgybhz861351hyrjyhxsi-user-environment
/nix/store/w42jw1fqvpjnqaq60hg8r1s32ccgq51j-env-manifest.nix
/nix/store/f7h7vm5xg5l21ixprqzfa5n945v9wa6l-user-environment
/nix/store/hq0dwq6pmrpap3rrf7hf5dq8b8qdp9v7-env-manifest.nix
/nix/store/q56xjhqk9n48bi39ajkls1kmlkmbg6w8-user-environment
/nix/store/vvv3pj8ahyr15wqgl259n2yfap54m7fp-user-environment
/nix/store/x3ggqqxk29x83hd0xzsnmnsmn64mw5fh-user-environment

I would not use nix-env.

https://stop-using-nix-env.privatevoid.net/

Thanks, but this doesn’t resolve my issue. Next time I will use distrobox since SteamOS doesn’t allow to install packages (I know I can change it, but I don’t want to).