install a new package in home-manager

Once you have the package name (see find a package in the Nixpkgs), you can install it in the home-manager/ folder.

There are several ways to install a new package in home-manager:

{ pkgs, ... }: {
 
  # By declaring directly their package name.
  # Using this way will only install the package.
  home.packages = with pkgs; [
    your-package
  ];
 
  # Sometimes, there's an option for that. You can check directly in https://mynixos.com.
  # You can use this syntax if you want to use default options set by home-manager or if
  # some other package needs to know if your package is enabled or not (e.g. stylix).
  programs.your-package = {
    enable = true;
  };
}