From bd039d6581bb8cde473f72b316ac0dc7a2887211 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Sun, 26 Nov 2023 16:21:07 +0100 Subject: [PATCH] service/octoprint: fix type of plugins --- modules/services/octoprint/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/services/octoprint/default.nix b/modules/services/octoprint/default.nix index bc7d81d..705f267 100644 --- a/modules/services/octoprint/default.nix +++ b/modules/services/octoprint/default.nix @@ -4,14 +4,14 @@ let cfg = config.my.services.octoprint; in { - options.my.services.octoprint = with lib; { - enable = mkEnableOption "Octoprint Server"; + options.my.services.octoprint = { + enable = lib.mkEnableOption "Octoprint Server"; - plugins = mkOption { - type = types.functionTo (types.listOf types.package); + plugins = lib.mkOption { + type = lib.types.listOf lib.types.package; default = [ ]; - defaultText = literalExpression "plugins: []"; - example = literalExpression "plugins: with plugins; [ themeify stlviewer ]"; + defaultText = lib.literalExpression "plugins: []"; + example = lib.literalExpression "plugins: with plugins; [ themeify stlviewer ]"; description = lib.mdDoc "Additional plugins to be used. Available plugins are passed through the plugins input."; }; };