We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 18f1562 + 74f94b0 commit ebfa5f8Copy full SHA for ebfa5f8
nixos/modules/services/misc/octoprint.nix
@@ -18,9 +18,7 @@ let
18
19
cfgUpdate = pkgs.writeText "octoprint-config.yaml" (builtins.toJSON fullConfig);
20
21
- pluginsEnv = package.python.withPackages (ps: [ ps.octoprint ] ++ (cfg.plugins ps));
22
-
23
- package = pkgs.octoprint;
+ pluginsEnv = cfg.package.python.withPackages (ps: [ ps.octoprint ] ++ (cfg.plugins ps));
24
25
in
26
{
@@ -30,6 +28,8 @@ in
30
28
31
29
services.octoprint = {
32
+ package = lib.mkPackageOption pkgs "octoprint" { };
+
33
enable = lib.mkEnableOption "OctoPrint, web interface for 3D printers";
34
35
host = lib.mkOption {
0 commit comments