Add custom packages
All checks were successful
Check flake / build-amd64-linux (push) Successful in 2m56s

This commit is contained in:
2024-08-04 11:47:33 +01:00
parent 6dcd2b0139
commit 127ef6353c
5 changed files with 180 additions and 31 deletions

View File

@ -59,41 +59,13 @@
};
};
systemd.services.ustreamer = {
enable = true;
description = "uStreamer service";
unitConfig = {
Type = "simple";
};
serviceConfig = {
ExecStartPre = ''${pkgs.v4l-utils}/bin/v4l2-ctl \
--device=/dev/video0 \
--fix-edid-checksums \
--info-edid
'';
ExecStart = ''${pkgs.unstable.ustreamer}/bin/ustreamer \
--device=/dev/video0 \
--resolution=1280x720 \
--format=uyvy \
--encoder=m2m-image \
--workers=3 \
--persistent \
--dv-timings \
--drop-same-frames=30 \
--host=0.0.0.0 \
--port=8080
'';
};
wantedBy = [ "network-online.target" ];
confinement.mode = "chroot-only";
};
environment.systemPackages = with pkgs; [
camera-streamer
git
neovim
libcamera
libraspberrypi
raspberrypi-eeprom
rpicam-apps
v4l-utils
unstable.ustreamer
];