firefox: support passing any json value to settings (#3580)
Firefox internally only supports bool, int, and string types for preferences, but often stores objects, arrays and floats as strings. This change makes it nicer to specify those type of preferences in Nix, and it also makes it possible to merge objects & arrays across multiple modules.
This commit is contained in:
parent
e3f28ddb0d
commit
9f4268e6b6
3 changed files with 30 additions and 4 deletions
|
|
@ -1,5 +1,6 @@
|
|||
// Generated by Home Manager.
|
||||
|
||||
user_pref("browser.newtabpage.pinned", "[{\"title\":\"NixOS\",\"url\":\"https://nixos.org\"}]");
|
||||
user_pref("general.smoothScroll", false);
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,13 @@ lib.mkIf config.test.enableBig {
|
|||
|
||||
profiles.test = {
|
||||
id = 1;
|
||||
settings = { "general.smoothScroll" = false; };
|
||||
settings = {
|
||||
"general.smoothScroll" = false;
|
||||
"browser.newtabpage.pinned" = [{
|
||||
title = "NixOS";
|
||||
url = "https://nixos.org";
|
||||
}];
|
||||
};
|
||||
};
|
||||
|
||||
profiles.bookmarks = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue