Add custom packages
All checks were successful
Check flake / build-amd64-linux (push) Successful in 2m56s
All checks were successful
Check flake / build-amd64-linux (push) Successful in 2m56s
This commit is contained in:
@ -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
|
||||
];
|
||||
|
Reference in New Issue
Block a user