Skip to content

Commit

Permalink
firefox: support nested folders in bookmarks (nix-community#3112)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhoriguchi authored Aug 27, 2022
1 parent 0884d6c commit 375631f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/programs/firefox.nix
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ in {
};

bookmarks = mkOption {
type = types.listOf bookmarkType;
type = types.listOf nodeType;
default = [ ];
description = "Bookmarks within directory.";
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,11 @@ <H1>Bookmarks Menu</H1>
<DL><p>
<DT><A HREF="https://nixos.org/" ADD_DATE="0" LAST_MODIFIED="0">homepage</A>
<DT><A HREF="https://nixos.wiki/" ADD_DATE="0" LAST_MODIFIED="0">wiki</A>
<DT><H3>Nix sites</H3>
<DL><p>
<DT><A HREF="https://nixos.org/" ADD_DATE="0" LAST_MODIFIED="0">homepage</A>
<DT><A HREF="https://nixos.wiki/" ADD_DATE="0" LAST_MODIFIED="0">wiki</A>
</p></DL>
</p></DL>
</p></DL>
</p></DL>
13 changes: 13 additions & 0 deletions tests/modules/programs/firefox/profile-settings.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,19 @@ lib.mkIf config.test.enableBig {
name = "wiki";
url = "https://nixos.wiki/";
}
{
name = "Nix sites";
bookmarks = [
{
name = "homepage";
url = "https://nixos.org/";
}
{
name = "wiki";
url = "https://nixos.wiki/";
}
];
}
];
}
];
Expand Down

0 comments on commit 375631f

Please sign in to comment.