From 2a142a83f6ca9427e8633e7bbfdcbcba6c1a5423 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Wed, 15 Nov 2023 10:36:00 +0300 Subject: [PATCH] host/home: add octoprint draggable files plugin --- nixos/hosts/home/default.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/nixos/hosts/home/default.nix b/nixos/hosts/home/default.nix index 1cfcff5..66e9743 100644 --- a/nixos/hosts/home/default.nix +++ b/nixos/hosts/home/default.nix @@ -119,6 +119,19 @@ services.octoprint = { enable = true; port = 33002; - plugins = ps: [ ps.stlviewer ]; + plugins = ps: [ + ps.stlviewer + (ps.buildPlugin rec { + pname = "octoprint_draggable_files"; + version = "1.1.2"; + + src = pkgs.fetchFromGitHub { + owner = "SanderRonde"; + repo = "Octoprint-Draggable-Files"; + rev = version; + sha256 = "sha256-MCi+iLYQ1aVWe9ph+Lu1cGlGFGZ5e3fCp7PQ1lIGPr4="; + }; + }) + ]; }; }