diff options
Diffstat (limited to 'lass/1systems/styx/config.nix')
-rw-r--r-- | lass/1systems/styx/config.nix | 18 |
1 files changed, 18 insertions, 0 deletions
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 <stockholm/lib>; 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 = '' |