{ 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=off --sharpness 1.1"; }; }; environment.systemPackages = with pkgs; [ git neovim libcamera libraspberrypi raspberrypi-eeprom rpicam-apps ]; system.stateVersion = "24.05"; }