firefox: fix missing lib (#6744)

This commit is contained in:
Austin Horstman
2025-04-01 08:25:30 -05:00
committed by GitHub
parent c21383b556
commit 55cf1f1632

View File

@@ -385,33 +385,31 @@ in {
};
bookmarks = mkOption {
type = (with types;
coercedTo bookmarkTypes.settingsType (bookmarks:
if bookmarks != { } then
warn ''
${cfg.name} bookmarks have been refactored into a submodule that now explicitly require a 'force' option to be enabled.
type = (types.coercedTo bookmarkTypes.settingsType (bookmarks:
if bookmarks != { } then
lib.warn ''
${cfg.name} bookmarks have been refactored into a submodule that now explicitly require a 'force' option to be enabled.
Replace:
Replace:
${moduleName}.profiles.${name}.bookmarks = [ ... ];
${moduleName}.profiles.${name}.bookmarks = [ ... ];
With:
With:
${moduleName}.profiles.${name}.bookmarks = {
force = true;
settings = [ ... ];
};
'' {
${moduleName}.profiles.${name}.bookmarks = {
force = true;
settings = bookmarks;
}
else
{ }) (submodule ({ config, ... }:
import ./profiles/bookmarks.nix {
inherit config lib pkgs;
modulePath = modulePath
++ [ "profiles" name "bookmarks" ];
})));
settings = [ ... ];
};
'' {
force = true;
settings = bookmarks;
}
else
{ }) (types.submodule ({ config, ... }:
import ./profiles/bookmarks.nix {
inherit config lib pkgs;
modulePath = modulePath ++ [ "profiles" name "bookmarks" ];
})));
default = { };
internal = !enableBookmarks;
description = "Declarative bookmarks.";