diff --git a/features/frigate-mpv-cage.nix b/features/frigate-mpv-cage.nix new file mode 100644 index 0000000..4d9cca2 --- /dev/null +++ b/features/frigate-mpv-cage.nix @@ -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" + ]; +} diff --git a/systems/bastion/bastion-actual.nix b/systems/bastion/bastion-actual.nix index 7f87a31..7132e37 100644 --- a/systems/bastion/bastion-actual.nix +++ b/systems/bastion/bastion-actual.nix @@ -11,6 +11,8 @@ ../../features/intelgpu.nix ../../tweaks/powersave.nix + + ../../features/frigate-mpv-cage.nix ]; boot.loader.grub.mirroredBoots = [