summaryrefslogtreecommitdiffstats
path: root/lass
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-09-18 12:19:02 +0200
committerlassulus <lassulus@lassul.us>2022-09-18 12:19:02 +0200
commit48cb415d2fb845ec0c2853f6440bec5fae589930 (patch)
treeefb123f7d022cd80a528981e3383734e68a7af1d /lass
parent8301bb18d00df6a91e257b582bfbe24e5edff103 (diff)
home-media: add snapmpv
Diffstat (limited to 'lass')
-rw-r--r--lass/2configs/home-media.nix11
1 files changed, 11 insertions, 0 deletions
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 <stockholm/lib>;
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 \
+ "$@"
+ '')
+ ];
}