Skip to content

Commit ebfa5f8

Browse files
nixos/octoprint: add package option (#393772)
2 parents 18f1562 + 74f94b0 commit ebfa5f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nixos/modules/services/misc/octoprint.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ let
1818

1919
cfgUpdate = pkgs.writeText "octoprint-config.yaml" (builtins.toJSON fullConfig);
2020

21-
pluginsEnv = package.python.withPackages (ps: [ ps.octoprint ] ++ (cfg.plugins ps));
22-
23-
package = pkgs.octoprint;
21+
pluginsEnv = cfg.package.python.withPackages (ps: [ ps.octoprint ] ++ (cfg.plugins ps));
2422

2523
in
2624
{
@@ -30,6 +28,8 @@ in
3028

3129
services.octoprint = {
3230

31+
package = lib.mkPackageOption pkgs "octoprint" { };
32+
3333
enable = lib.mkEnableOption "OctoPrint, web interface for 3D printers";
3434

3535
host = lib.mkOption {

0 commit comments

Comments
 (0)