From dd30ebef45b63b4c8bb8b586f750ff877f60f565 Mon Sep 17 00:00:00 2001 From: lassulus Date: Sat, 4 Mar 2017 19:49:39 +0100 Subject: l 2: add livestream.nix --- lass/2configs/livestream.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lass/2configs/livestream.nix (limited to 'lass/2configs/livestream.nix') diff --git a/lass/2configs/livestream.nix b/lass/2configs/livestream.nix new file mode 100644 index 00000000..25d54e26 --- /dev/null +++ b/lass/2configs/livestream.nix @@ -0,0 +1,12 @@ +{ config, pkgs, ... }: +with import ; + +let + + stream = pkgs.writeDashBin "stream" '' + ${pkgs.python35Packages.livestreamer}/bin/livestreamer --http-header Client-ID=jzkbprff40iqj646a697cyrvl0zt2m6 -p mpv "$@" + ''; + +in { + environment.systemPackages = [ stream ]; +} -- cgit v1.2.3