feat(service): add octoprint

This commit is contained in:
2026-03-07 12:54:35 +01:00
parent 32b398cdb9
commit 786be0b260
2 changed files with 34 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
{
imports = [
./gitea.nix
./octoprint.nix
];
services.openssh.enable = true;

View File

@@ -0,0 +1,33 @@
{ ... }:
{
nixpkgs.overlays = [
(self: super: {
octoprint = super.octoprint.override {
packageOverrides = pyself: pysuper: {
octoprint-fanspeedslider = pyself.buildPythonPackage rec {
pname = "fanspeedslider";
version = "0.2.3";
src = self.fetchFromGitHub {
owner = "mival";
repo = "OctoPrint-FanSpeedSlider";
rev = "${version}";
sha256 = "sha256-0Gp9EgaKyCnRQv4A1sNHquTRqjag2Oz/fDGVVo95FfY=";
};
propagatedBuildInputs = [ pysuper.octoprint ];
pyproject = true;
doCheck = false;
};
};
};
})
];
services.octoprint = {
enable = true;
openFirewall = true;
port = 8002;
plugins =
plugins: with plugins; [
octoprint-fanspeedslider
];
};
}