Stylix not applying theme

Hi, I recently made the switch to nixos and I’m having some trouble getting stylix to work. It changes the colour of the text while systemd is initialising on boot, but doesn’t seem to change anything else. I am using home-manger and stylix is installed as a nix module as recommended by vimjoyer. my full config
Here is my flake.nix:

{ description = "The config";

  inputs = {

    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";

    nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.05";

    home-manager = {
      url = "github:nix-community/home-manager";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    # Todo: write my own nvim conig
    #nixvim = {
    #    nixvim = { url = "github:nix-community/nixvim"; inputs.nixpkgs.follows = "nixpkgs";
    #};

    stylix.url = "github:danth/stylix";

  };

  outputs = { nixpkgs, nixpkgs-stable, home-manager, stylix, ... }@inputs:

    let
      system = "x86_64-linux"; pkgs = nixpkgs.legacyPackages.${system};
    in {

    nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
      specialArgs = {
        pkgs-stable = import nixpkgs-stable {
          inherit system; config.allowUnfree = true;
        };
         inherit inputs system;
      };
      modules = [
        inputs.stylix.nixosModules.stylix
        ./nixos/configuration.nix
        #inputs.nixvim.nixosModules.nixvim
      ];
    };

    homeConfigurations.janek = home-manager.lib.homeManagerConfiguration {
      inherit pkgs;
      modules = [ ./home-manager/home.nix ];
    };
  };
}

and my stylix.nix:

{ pkgs, inputs, ... }:

{
  stylix.enable = true;

  stylix.base16Scheme = {
    base00 = "282828"; # ----
    base01 = "3c3836"; # ---
    base02 = "504945"; # --
    base03 = "665c54"; # -
    base04 = "bdae93"; # +
    base05 = "d5c4a1"; # ++
    base06 = "ebdbb2"; # +++
    base07 = "fbf1c7"; # ++++
    base08 = "fb4934"; # red
    base09 = "fe8019"; # orange
    base0A = "fabd2f"; # yellow
    base0B = "b8bb26"; # green
    base0C = "8ec07c"; # aqua/cyan
    base0D = "83a598"; # blue
    base0E = "d3869b"; # purple
    base0F = "d65d0e"; # brown
  };
  #stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/tokyo-night-dark.yaml";
  stylix.image = "~/Pictures/pixelart.jpg";
  stylix.polarity = "dark";
}

Any help would be greatly appreciated. Thanks

If stylix has a home-manager module, it must be imported, as well. Here: