summaryrefslogtreecommitdiffstats
path: root/lass/2configs/radio.nix
diff options
context:
space:
mode:
authorlassulus <lass@lassul.us>2017-05-09 20:40:58 +0200
committerlassulus <lass@lassul.us>2017-05-09 20:40:58 +0200
commitb297822294329f83f6a3ef6c93709ab369da6ffc (patch)
tree5479d3aff19babd7ea0253e535fc0e2d5c7209af /lass/2configs/radio.nix
parent45fdcfa841c34b794640e863d7c613ce5bed8274 (diff)
l 2 radio: add suggest plugin
Diffstat (limited to 'lass/2configs/radio.nix')
-rw-r--r--lass/2configs/radio.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/lass/2configs/radio.nix b/lass/2configs/radio.nix
index 6e96f8845..1e14e31bb 100644
--- a/lass/2configs/radio.nix
+++ b/lass/2configs/radio.nix
@@ -145,6 +145,12 @@ in {
script = "${print_current}/bin/print_current";
pattern = "^current$";
})
+ (buildSimpleReaktorPlugin "suggest" {
+ script = "${pkgs.writeDash "suggest" ''
+ echo "$@" >> $HOME/playlist_suggest
+ ''}";
+ pattern = "^suggest: (?P<args>.*)$";
+ })
];
};
services.nginx.virtualHosts."lassul.us".locations."/the_playlist".extraConfig = let