10
submitted 6 months ago by secana@programming.dev to c/nix@programming.dev

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?

you are viewing a single comment's thread
view the rest of the comments
[-] secana@programming.dev 1 points 6 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 1 points 6 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?

[-] secana@programming.dev 1 points 6 months ago

That worked! Thank you! The trick is really to embed the bookmarks into each other :)

this post was submitted on 16 May 2024
10 points (100.0% liked)

Nix / NixOS

1765 readers
1 users here now

Main links

Videos

founded 1 year ago
MODERATORS