summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <git@lassul.us>2023-07-23 23:04:42 +0200
committerlassulus <git@lassul.us>2023-07-23 23:04:42 +0200
commitc32c2996ab27ffd70087e71b8d506096e00f0fd8 (patch)
tree7848aedc99da878581067141a67eea02312e7e40
parent00449032df948eb84f2c477a096251ef19ae0acb (diff)
l styx.r: add some scripts
-rw-r--r--lass/1systems/styx/config.nix18
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 = ''