{
  config,
  lib,
  inputs,
  ...
}: {
  options.nix.index = lib.mkEnableOption "Enable Package Indexer";

  ## Package Indexer ##
  config = lib.mkIf config.nix.index {
    user.homeConfig = {
      imports = [inputs.index.hmModules.nix-index];
      programs.nix-index-database.comma.enable = true;
    };
  };
}
