mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-09 12:06:04 +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 {
|
in rec {
|
||||||
settingsType = with types;
|
settingsType = with types;
|
||||||
coercedTo (addCheck (attrsOf nodeType) (attrs: !(attrs ? settings)))
|
coercedTo (addCheck (attrsOf nodeType)
|
||||||
attrValues (listOf nodeType);
|
# Check whether attribute set is of correct type
|
||||||
|
(attrs: !(attrs ? settings) || nodeType.check attrs.settings)) attrValues
|
||||||
|
(listOf nodeType);
|
||||||
|
|
||||||
bookmarkSubmodule = types.submodule ({ name, ... }: {
|
bookmarkSubmodule = types.submodule ({ name, ... }: {
|
||||||
options = {
|
options = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue