From 74f94b0a3e8c406b707081545322e20bd31f2248 Mon Sep 17 00:00:00 2001 From: Florian Brandes Date: Thu, 27 Mar 2025 17:36:45 +0100 Subject: [PATCH] nixos/octoprint: add package option fixes #392870 Signed-off-by: Florian Brandes --- nixos/modules/services/misc/octoprint.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/misc/octoprint.nix b/nixos/modules/services/misc/octoprint.nix index 193e4222a37e..45c631a36dfd 100644 --- a/nixos/modules/services/misc/octoprint.nix +++ b/nixos/modules/services/misc/octoprint.nix @@ -18,9 +18,7 @@ let cfgUpdate = pkgs.writeText "octoprint-config.yaml" (builtins.toJSON fullConfig); - pluginsEnv = package.python.withPackages (ps: [ ps.octoprint ] ++ (cfg.plugins ps)); - - package = pkgs.octoprint; + pluginsEnv = cfg.package.python.withPackages (ps: [ ps.octoprint ] ++ (cfg.plugins ps)); in { @@ -30,6 +28,8 @@ in services.octoprint = { + package = lib.mkPackageOption pkgs "octoprint" { }; + enable = lib.mkEnableOption "OctoPrint, web interface for 3D printers"; host = lib.mkOption {