I am using the (unofficial? not in the list) nixOS version which works great, but when trying to do updates using nix-env -u it updates to the normal chromium package (I think it has to do with version number)
How do you install ungoogled-chromium using nix (or nox) in a way that makes updates using nix-env -u only grab newer versions of ungoogled-chromium?
Might be better to ask on #nixos IRC. I'm not sure exactly how the nix-env command works. The Nix package attribute path is ungoogled-chromium, so I would expect it to work like any other package if you've installed that.
Are you sure it's reverting to the normal chromium package? The nix store path for ungoogled-chromium is a little misleading in that it just says "chromium" instead of "ungoogled-chromium". This is something I can fix in a future revision.
From my reading sadly the attribute path is not used as part of the logic in nix for doing updates. I remember reading an issue where they were discussing adding it for doing updates, but it may be a while off. It will probably break something.
I just tested again and nix tries to replace ungoogled-chromium with base chromium. The easiest fix would be to rename the ungoogled-chromium version's package to ungoogled-chromium. Will you make that change?
I'm not a nix-env user, so I don't really understand the issue. Do you have a link to where you were reading about that?
But either way, yes I can include this in a future revision of the nix package!
The best thing to do right now is to fix those nixpkgs packages so that the derivation name matches the attribute name.
This is something I can do