summaryrefslogtreecommitdiffstats
path: root/lass/2configs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2019-04-18 13:39:00 +0200
committerlassulus <lassulus@lassul.us>2019-04-18 13:39:00 +0200
commitda336abf88d620648580a8e0a25e2b31c7d110ff (patch)
treea1c41c04f0ecd4e27195438e0bd18026eb44af62 /lass/2configs
parentcd6c5e1311cd14f232faa43f0913f6158f7d780b (diff)
l radio: set new music directory
Diffstat (limited to 'lass/2configs')
-rw-r--r--lass/2configs/radio.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/lass/2configs/radio.nix b/lass/2configs/radio.nix
index 521b3c050..b26237c6d 100644
--- a/lass/2configs/radio.nix
+++ b/lass/2configs/radio.nix
@@ -10,7 +10,7 @@ let
source-password = import <secrets/icecast-source-pw>;
add_random = pkgs.writeDashBin "add_random" ''
- ${pkgs.mpc_cli}/bin/mpc add "$(${pkgs.mpc_cli}/bin/mpc ls | shuf -n1)"
+ ${pkgs.mpc_cli}/bin/mpc add "$(${pkgs.mpc_cli}/bin/mpc ls the_playlist/music | grep '\.ogg$' | shuf -n1)"
'';
skip_track = pkgs.writeDashBin "skip_track" ''
@@ -57,7 +57,7 @@ in {
services.mpd = {
enable = true;
group = "radio";
- musicDirectory = "/home/radio/the_playlist/music";
+ musicDirectory = "/home/radio/music";
extraConfig = ''
log_level "default"
auto_update "yes"