Nixvim doesn't install plugins - home-manager

I have a home-manager nixvim installation with flake,

{ config, pkgs, inputs, ... }:
let 
  musnix = inputs.nixvim.homeModules.nixvim;
in
{
   programs = {
    nixvim = {
      enable = true;
      imports = [./nvim/nixvim.nix];
      };
  };
}

I’ve tried installing plugins like this in my nixvim.nix file

{lib, ...}:

{
  plugins = {
    lualine = {
      enable = true;
      autoload = true;
    };
}

but i get the error

Error detected while processing /home/sele/.config/nvim/init.lua:                                                                                                                                                 
E5113: Error while calling lua chunk: /home/sele/.config/nvim/init.lua:45: module 'lualine' not found:                                                                                                            
        no field package.preload['lualine']                                                                                                                                                                       
        no file '/nix/store/bb83izkrw2b8cklqj8xm15qshb98gdi8-luajit-2.1.1741730670-env/share/lua/5.1/lualine.lua'                                                                                                 
        no file '/nix/store/bb83izkrw2b8cklqj8xm15qshb98gdi8-luajit-2.1.1741730670-env/share/lua/5.1/lualine/init.lua'                                                                                            
        no file '/nix/store/bb83izkrw2b8cklqj8xm15qshb98gdi8-luajit-2.1.1741730670-env/lib/lua/5.1/lualine.so'                                                                                                    
stack traceback:                                                                                                                                                                                                  
        [C]: in function 'require'                                                                                                                                                                                
        /home/sele/.config/nvim/init.lua:45: in main chunk  

I can set options just fine and i got treesitter somewhat functional, though it doesn’t do highlights:

treesitter = {
      enable = true;
      highlight.enable = true;
      indent.enable = true;
      folding.enable = true;
      grammarPackages = with pkgs.vimPlugins.nvim-treesitter.builtGrammars; [
      bash
      latex
      json
      lua
      make
      markdown
      nix
      vim
      vimdoc
      ];
    }; 

after turning on my computer and opening nvim everything now works, i changed nothing, i should have known to turn it off and on again i guess? i can now change whatever and it works automatically after running home-manager switch, idk man, solved.