Unverified Commit 74f94b0a authored by Florian Brandes's avatar Florian Brandes
Browse files

nixos/octoprint: add package option



fixes #392870

Signed-off-by: default avatarFlorian Brandes <florian.brandes@posteo.de>
parent bb9e21da
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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 {