Files
nix-config/hosts/skycam/default.nix
Jordan Holt a578aaa922
All checks were successful
Check flake / build-amd64-linux (push) Successful in 1m17s
hosts/skycam: adjust camera settings
2025-06-22 10:02:53 +01:00

45 lines
825 B
Nix

{
pkgs,
...
}:
{
imports = [
./hardware-configuration.nix
../server.nix
];
nixpkgs.hostPlatform = "aarch64-linux";
networking = {
hostId = "731d1660";
firewall = {
enable = true;
allowedTCPPorts = [ 8080 ];
allowedUDPPorts = [ 8080 ];
};
};
services.go2rtc =
let
rpicam-vid = "${pkgs.rpicam-apps}/bin/rpicam-vid";
in
{
enable = true;
settings = {
streams.rpicam = "exec:${rpicam-vid} -v1 -t0 -o- --inline --width=4608 --height=2592 --framerate=14 --codec mjpeg --quality 90 --denoise=cdn_off --sharpness 1.25 --exposure long --gain 3";
};
};
environment.systemPackages = with pkgs; [
git
neovim
libcamera
libraspberrypi
raspberrypi-eeprom
rpicam-apps
];
system.stateVersion = "24.05";
}