{...}: {
  programs.nixvim = {
    keymaps = [
      {
        key = "gff";
        mode = "n";
        action = "function() require('telescope').extensions.frecency.frecency() end";
        lua = true;
        options.desc = "activate the frecency file selection";
      }
    ];
    plugins.telescope = {
      extensions.frecency = {
        enable = true;
        showUnindexed = true;
        showScores = true;
        # TODO: add this:
        #db_safe_mode = true;
      };
    };
  };
}