mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
firefox: check if bookmarks attrset is of correct type
This commit is contained in:
parent
d7f451d7b1
commit
ecbcd792e1
1 changed files with 4 additions and 2 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue