Unverified Commit ebfa5f86 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

nixos/octoprint: add package option (#393772)

parents 18f15620 74f94b0a
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 {