diff options
author | makefu <github@syntax-fehler.de> | 2023-06-03 15:27:46 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2023-06-03 15:27:46 +0200 |
commit | be3284417942c0164c1b32c9cf34ba44bcfb86c3 (patch) | |
tree | 4302b9ce28125003e4daf5ae411f65cef58537ef /makefu/2configs/home/3dprint.nix | |
parent | dd0a6294c8699640f47127f237104aac9d96c896 (diff) |
ma home: deploy home-assistant via docker
Diffstat (limited to 'makefu/2configs/home/3dprint.nix')
-rw-r--r-- | makefu/2configs/home/3dprint.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/makefu/2configs/home/3dprint.nix b/makefu/2configs/home/3dprint.nix index 09f2ce6fd..aac962787 100644 --- a/makefu/2configs/home/3dprint.nix +++ b/makefu/2configs/home/3dprint.nix @@ -1,8 +1,12 @@ { pkgs, ... }: +let + #dev = "/dev/web_cam"; + dev = "/dev/video0"; +in { services.mjpg-streamer = { enable = true; - inputPlugin = "input_uvc.so -d /dev/web_cam -r 1280x960"; + inputPlugin = "input_uvc.so -d ${dev} -r 1280x960"; }; users.users.octoprint.extraGroups = [ "video" ]; # allow octoprint to access /dev/vchiq |