nixfiles/home/apps/mpv.nix
2022-02-15 11:04:08 +00:00

12 lines
419 B
Nix

{ config, pkgs, ... }: {
home.packages = with pkgs; [ mpv ffmpeg yt-dlp ];
programs.mpv = {
enable = true;
config = {
"script-opts" = "ytdl_hook-ytdl_path=${pkgs.yt-dlp}/bin/yt-dlp";
};
};
programs.zsh.shellAliases.listen = ''
${pkgs.mpv}/bin/mpv "https://music:$(cat /secrets/music-stream-password)@stream.owo.monster/flac" --cache=yes --cache-pause-initial=yes --cache-pause-wait=5'';
}