From f5825552e4e22f0a144acd966d3160a8da6c41cf Mon Sep 17 00:00:00 2001 From: Alexander Sosedkin Date: Sun, 18 Jun 2023 19:21:57 +0200 Subject: [PATCH] plugins/noice: turn routes into a list (#434) --- plugins/ui/noice.nix | 2 +- tests/test-sources/plugins/ui/noice.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/ui/noice.nix b/plugins/ui/noice.nix index 47d1f5c7..b1b20ed9 100644 --- a/plugins/ui/noice.nix +++ b/plugins/ui/noice.nix @@ -264,7 +264,7 @@ in { ''; views = helpers.defaultNullOpts.mkNullable (types.attrsOf types.anything) "{}" ""; - routes = helpers.defaultNullOpts.mkNullable (types.attrsOf types.anything) "{}" ""; + routes = helpers.defaultNullOpts.mkNullable (types.listOf (types.attrsOf types.anything)) "[]" ""; status = helpers.defaultNullOpts.mkNullable (types.attrsOf types.anything) "{}" ""; format = helpers.defaultNullOpts.mkNullable (types.attrsOf types.anything) "{}" ""; }; diff --git a/tests/test-sources/plugins/ui/noice.nix b/tests/test-sources/plugins/ui/noice.nix index ff4f8f5f..087d5b64 100644 --- a/tests/test-sources/plugins/ui/noice.nix +++ b/tests/test-sources/plugins/ui/noice.nix @@ -200,7 +200,7 @@ }; throttle = 1000 / 30; views = {}; - routes = {}; + routes = []; status = {}; format = {}; };