nixos/octoprint: add package option (#393772)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user