mirror of
https://github.com/Superredstone/nixos.git
synced 2026-03-07 20:28:08 +01:00
feat(service): add octoprint
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./gitea.nix
|
./gitea.nix
|
||||||
|
./octoprint.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
|
|||||||
33
machines/bomba/services/octoprint.nix
Normal file
33
machines/bomba/services/octoprint.nix
Normal 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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user