Add frigate-mpv-cage to bastion

This commit is contained in:
Lauren Lagarde 2025-03-05 14:34:19 -06:00
parent 0475259e07
commit 2f65f8fcba
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,20 @@
{ pkgs, ... }: {
environment.systemPackages = with pkgs; [
mpv
];
services.cage = {
enable = true;
program = "${pkgs.mpv}/bin/mpv --profile=low-latency --untimed rtsp://bastion.mlaga97.space:8554/birdseye";
user = "dotspace";
extraArguments = [ "-s" ];
environment = {
WLR_LIBINPUT_NO_DEVICES = "1"; # boot up even if no mouse/keyboard connected
};
};
systemd.services."cage-tty1.service".after = [
"network-online.target"
"systemd-resolved.service"
];
}

View File

@ -11,6 +11,8 @@
../../features/intelgpu.nix
../../tweaks/powersave.nix
../../features/frigate-mpv-cage.nix
];
boot.loader.grub.mirroredBoots = [