From 48cb415d2fb845ec0c2853f6440bec5fae589930 Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 18 Sep 2022 12:19:02 +0200 Subject: [PATCH] home-media: add snapmpv --- lass/2configs/home-media.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lass/2configs/home-media.nix b/lass/2configs/home-media.nix index f250ca8d8..f3908e6be 100644 --- a/lass/2configs/home-media.nix +++ b/lass/2configs/home-media.nix @@ -20,4 +20,15 @@ with import ; krebs.iptables.tables.filter.INPUT.rules = [ { predicate = "-p tcp --dport 4713"; target = "ACCEPT"; } # pulseaudio ]; + + environment.systemPackages = [ + (pkgs.writers.writeDashBin "snapmpv" '' + /run/current-system/sw/bin/mpv \ + --audio-display=no --audio-channels=stereo \ + --audio-samplerate=48000 --audio-format=s16 \ + --ao-pcm-file=/run/snapserver/snapfifo --ao=pcm \ + --audio-delay=-1 \ + "$@" + '') + ]; }