service/octoprint: fix type of plugins

This commit is contained in:
Felix Buehler 2023-11-26 16:21:07 +01:00
parent 539a8c95e9
commit bd039d6581

View file

@ -4,14 +4,14 @@ let
cfg = config.my.services.octoprint; cfg = config.my.services.octoprint;
in in
{ {
options.my.services.octoprint = with lib; { options.my.services.octoprint = {
enable = mkEnableOption "Octoprint Server"; enable = lib.mkEnableOption "Octoprint Server";
plugins = mkOption { plugins = lib.mkOption {
type = types.functionTo (types.listOf types.package); type = lib.types.listOf lib.types.package;
default = [ ]; default = [ ];
defaultText = literalExpression "plugins: []"; defaultText = lib.literalExpression "plugins: []";
example = literalExpression "plugins: with plugins; [ themeify stlviewer ]"; example = lib.literalExpression "plugins: with plugins; [ themeify stlviewer ]";
description = lib.mdDoc "Additional plugins to be used. Available plugins are passed through the plugins input."; description = lib.mdDoc "Additional plugins to be used. Available plugins are passed through the plugins input.";
}; };
}; };