1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-09 03:56:04 +01:00

firefox: check if bookmarks attrset is of correct type

This commit is contained in:
bricked 2025-03-21 17:31:39 +01:00 committed by Austin Horstman
parent d7f451d7b1
commit ecbcd792e1

View file

@ -7,8 +7,10 @@ let
in rec {
settingsType = with types;
coercedTo (addCheck (attrsOf nodeType) (attrs: !(attrs ? settings)))
attrValues (listOf nodeType);
coercedTo (addCheck (attrsOf nodeType)
# Check whether attribute set is of correct type
(attrs: !(attrs ? settings) || nodeType.check attrs.settings)) attrValues
(listOf nodeType);
bookmarkSubmodule = types.submodule ({ name, ... }: {
options = {