Removed: webcam.nix doesnt need it anymore

This commit is contained in:
2026-05-31 16:52:14 +02:00
parent 97f475f131
commit aaf1a17b33
3 changed files with 1 additions and 29 deletions
+1
View File
@@ -22,6 +22,7 @@ let
}; };
in in
{ {
# TODO: Built in every Plugin and enable them by default
programs.floorp = { programs.floorp = {
enable = true; enable = true;
-1
View File
@@ -18,7 +18,6 @@
./regreet.nix ./regreet.nix
./plymouth.nix ./plymouth.nix
./audio.nix ./audio.nix
# ./webcam.nix
./virt.nix ./virt.nix
./catppuccin.nix ./catppuccin.nix
]; ];
-28
View File
@@ -1,28 +0,0 @@
{ pkgs, ... }: {
# TODO: This need to be tested against the cam and kernel rules need to be refined
services.udev.extraRules = ''
ACTION=="add", \
SUBSYSTEM=="usb", \
ATTR{idVendor}=="04a9", \
ATTR{idProduct}=="31ea", \
RUN+="${pkgs.systemd}/bin/systemctl restart webcam"
'';
systemd.services.webcam = {
enable = true;
description = "Canon Camera Webcam";
script = ''
${pkgs.gphoto2}/bin/gphoto2 --stdout --capture-movie | \
${pkgs.ffmpeg}/bin/ffmpeg \
-i - \
-vcodec rawvideo \
-pix_fmt yuv420p \
-threads 0 \
-framerate 30 \
-f v4l2 \
/dev/video0
'';
wantedBy = [ "multi-user.target" ];
};
}