diff options
author | makefu <github@syntax-fehler.de> | 2022-09-23 22:25:15 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2022-09-23 22:25:15 +0200 |
commit | 57eceb7c056f90da0bc107e73795967e76ad92bf (patch) | |
tree | 7087e89c115ff4a97f74ca629d5e59e740b04b25 /lass/2configs/home-media.nix | |
parent | 092e42f7370b604ba05eda9b3ab1e07c91541d9a (diff) | |
parent | 55957c6d6adb51d2079c117c1e7309c60ee0fe0f (diff) |
Merge remote-tracking branch 'lass/master'
Diffstat (limited to 'lass/2configs/home-media.nix')
-rw-r--r-- | lass/2configs/home-media.nix | 11 |
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 \ + "$@" + '') + ]; } |