l styx.r: add some scripts
This commit is contained in:
parent
00449032df
commit
c32c2996ab
@ -36,6 +36,24 @@ with import <stockholm/lib>;
|
|||||||
networking.firewall.interfaces.wiregrill.allowedTCPPorts = [ config.services.smokeping.port ];
|
networking.firewall.interfaces.wiregrill.allowedTCPPorts = [ config.services.smokeping.port ];
|
||||||
krebs.power-action.enable = mkForce false;
|
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 = {
|
services.smokeping = {
|
||||||
enable = true;
|
enable = true;
|
||||||
targetConfig = ''
|
targetConfig = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user