I3wm doesn't update when nixos-rebuild switch is run

So, I installed i3wm using my configuration.nix file and at the time I used the stable channel of nixos, the version that got installed was i3wm 4.21.1, and I wanted to upgrade to version 4.22, tried swapping channels to nixos-unstable and nixpkgs-unstable and rebuilding the system but it didn’t update i3 and stayed on version 4.21.1, how could I go about updating it, I tried reading the i3 entry on the nix documentation but there is nothing about changing versions there
section of cfg.nix that installed i3

windowManager.i3 = {
      enable = true;
      extraPackages = with pkgs; [
        dmenu #application launcher most people use
        i3lock #default i3 screen locker

Sudo nix-channels:
home-manager https://github.com/nix-community/home-manager/archive/master.tar.gz nixos https://nixos.org/channels/nixos-unstable nixpkgs https://nixos.org/channels/nixpkgs-unstable

User nix-channels
home-manager https://github.com/nix-community/home-manager/archive/master.tar.gz

I don’t use any kind of flakes if that is relevant

Try i3-msg reload in a terminal?

I thought the i3wm module did this, but maybe not.

Output: [{"success":true}]
Someone also tolde me to try xsession.windowManager.i3.package = pkgs-unstable.i3;
but it does not work