Hi,

I want to sort my bookmarks in Firefox with home-manager into folders, but fail.

Simple example:

firefox = {
      profiles."user" = {
        bookmarks = [
          {
            name = "Nix";
            toolbar = true;
            bookmarks = [
              {
                name = "NixOS Search";
                url = "https://search.nixos.org/packages";
              }
              {
                name = "NixOS Options";
                url = "https://nixos.org/manual/nixos/unstable/options";
              }
              {
                name = "Home-Manager Options";
                url = "https://nix-community.github.io/home-manager/options.xhtml";
              }
              {
                name = "Home-Manager Options Search";
                url = "https://home-manager-options.extranix.com/";
              }
            ];
          }
        ];
      };

My assumption was that I get a folder “Nix” in the bookmarks toolbar that contains the four bookmarks. But instead the four bookmarks are added to the toolbar side-by-side without being in a folder.

How can I achieve that?

    • secana@programming.devOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      7 months ago

      Thanks for the reply. When I disable the toolbar, the bookmarks are correctly placed in a folder but the folder is not visible in the toolbar anymore. So I can either have the bookmarks separately in the toolbar, or in a folder but not in the toolbar. The combination of both seems to be only possible if I move the bookmarks by hand in the UI :/

      • blii@lemmy.zip
        link
        fedilink
        English
        arrow-up
        1
        ·
        7 months ago
        firefox = {
              profiles."user" = {
                bookmarks = [
                  {
                    name = "Toolbar folder";
                    toolbar = true;
                    bookmarks = [
                       {
                       name = "nix folder";
                       toolbar = false;
                       bookmarks = [
                          {
                            name = "NixOS Search";
                            url = "https://search.nixos.org/packages";
                          }
                      
        

        On phone so testing or reading source is a bit tough, but maybe nesting folders like the above work?