mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
firefox: check if bookmarks attrset is of correct type
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user