summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/home/3dprint.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2023-07-28 22:24:15 +0200
committermakefu <github@syntax-fehler.de>2023-07-28 22:24:15 +0200
commit060a8f28fa1fc648bdf66afb31a5d1efac868837 (patch)
tree2b354eacc7897365ee45244fe7a51720e0d0333f /makefu/2configs/home/3dprint.nix
parentcbfcc890e3b76d942b927809bf981a5fa7289e6a (diff)
makefu: move out to own repo, add vacation-note
Diffstat (limited to 'makefu/2configs/home/3dprint.nix')
-rw-r--r--makefu/2configs/home/3dprint.nix49
1 files changed, 0 insertions, 49 deletions
diff --git a/makefu/2configs/home/3dprint.nix b/makefu/2configs/home/3dprint.nix
deleted file mode 100644
index aac96278..00000000
--- a/makefu/2configs/home/3dprint.nix
+++ /dev/null
@@ -1,49 +0,0 @@
-{ pkgs, ... }:
-let
- #dev = "/dev/web_cam";
- dev = "/dev/video0";
-in
-{
- services.mjpg-streamer = {
- enable = true;
- inputPlugin = "input_uvc.so -d ${dev} -r 1280x960";
- };
- users.users.octoprint.extraGroups = [ "video" ];
- # allow octoprint to access /dev/vchiq
- # also ensure that the webcam always comes up under the same name
- services.udev.extraRules = ''
- SUBSYSTEM=="vchiq",GROUP="video",MODE="0660"
- KERNEL=="video*",ATTRS{vendor}=="0x046d", ATTRS{device}=="0x0825", GROUP="video", SYMLINK+="web_cam"
- '';
- systemd.services.octoprint = {
- path = [ pkgs.libraspberrypi ];
- };
- services.octoprint = {
- enable = true;
- plugins = plugins: with plugins;[
- costestimation
- displayprogress
- mqtt
- stlviewer
- themeify
- # octolapse
- (buildPlugin rec {
- pname = "OctoPrint-HomeAssistant";
- version = "3.6.2";
- src = pkgs.fetchFromGitHub {
- owner = "cmroche";
- repo = pname;
- rev = version;
- hash = "sha256-oo9OBmHoJFNGK7u9cVouMuBuUcUxRUrY0ppRq0OS1ro=";
- };
- })
- ];
- extraConfig.plugins.mqtt.broker = {
- url = "omo.lan";
- # TODO TODO TODO
- username = "hass";
- password = "lksue43jrf";
- # TODO TODO TODO
- };
- };
-}