I upgraded system to 20.03 but firefox chromium thunderbird are still old. Even chromium upgraded to 81 system see only 80, the same with firefox upgraded to 75 system see 73.
2 . How to resolve that:
nixos-rebuild switch --upgrade
unpacking channels…
building Nix…
building the system configuration…
trace: warning: The option i18n.consoleKeyMap' defined in /etc/nixos/configuration.nix’ has been renamed to console.keyMap'. trace: warning: The option i18n.consoleFont’ defined in /etc/nixos/configuration.nix' has been renamed to console.font’.
trace: warning: The following options are deprecated:
services.xserver.desktopManager.default
Please use
services.xserver.displayManager.defaultSession = “xfce”;
instead.
Do you install packages via nix-env instead of adding to system packages array by any chance? What do you see on nix-env -q?
And yeah, for the other deprecation issues, you need to change the old values to the new ones in your config.
Nix(OS) has this notion of profiles. If you install software with nix-env -i that ends up in your user profile. The things you configure in your configuration.nix, which you rebuild with nixos-rebuild end up in your system profile. You can upgrade the stuff in your user profile with nix-env -u.
A common pattern is to make little use of user profiles and instead put software into environment.systemPackages. That way it gets updated when your system gets updated.
Problem is not nix-env -u. System is upgraded. Output from nix-env -u is nothing.
Problem is system dont see new package. I open firefox 73 but 75 is installed. And i dont know why.
These comands upgrade all packages but when i open some of them for egzample chromium thunderbird firefox system will open old versions of software. Can anybody help how to block from being open old versions of packages
nix-env probably uses your users channels. So nix-env -u will work, if you run nix-channel --update. Or rather, what does nix-channel --list say for your user? You probably don’t have 20.03 in there yet.
How do you know system is upgraded to 20.03? Outputs from your first message was showing your configuration is not compliant to 20.03 yet. If it doesn’t “switch” to the new generation, even though you’ve downloaded the packages under nix store, you are still not upgraded.
Alright, I assume all good now then? If you’ve removed local packages the remaining binaries should be from up-to-date channel, looks like your system has only one anyway
P.s. you can use it like this to make it easier
environment.systemPackages = with pkgs; [
chromium
firefox
thunderbird
libreoffice
... etc. ]