From c32c2996ab27ffd70087e71b8d506096e00f0fd8 Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 23 Jul 2023 23:04:42 +0200 Subject: l styx.r: add some scripts --- lass/1systems/styx/config.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/lass/1systems/styx/config.nix b/lass/1systems/styx/config.nix index 41a0a115d..edb2a35e1 100644 --- a/lass/1systems/styx/config.nix +++ b/lass/1systems/styx/config.nix @@ -36,6 +36,24 @@ with import ; networking.firewall.interfaces.wiregrill.allowedTCPPorts = [ config.services.smokeping.port ]; krebs.power-action.enable = mkForce false; + environment.systemPackages = with pkgs; [ + wol + (writeDashBin "wake-alien" '' + ${wol}/bin/wol -h 10.42.0.255 10:65:30:68:83:a3 + '') + (writers.writeDashBin "iptv" '' + set -efu + /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 \ + --playlist=https://iptv-org.github.io/iptv/index.nsfw.m3u \ + --idle=yes \ + --input-ipc-server=/tmp/mpv.ipc \ + "$@" + '') + ]; services.smokeping = { enable = true; targetConfig = '' -- cgit v1.2.3