mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-19 07:05:51 +05:30
26 lines
481 B
Nix
26 lines
481 B
Nix
{ config, lib, pkgs, ... }:
|
|
let
|
|
myYtpScript = ''
|
|
#!/bin/sh
|
|
ytsub --video-player mpv
|
|
'';
|
|
myYtaScript = ''
|
|
#!/bin/sh
|
|
yt-dlp -x --audio-format mp3 $1
|
|
'';
|
|
myYtdScript = ''
|
|
#!/bin/sh
|
|
pushd ~/Media/Podcasts;
|
|
ytsub --video-player ~/.nix-profile/bin/yta;
|
|
popd;
|
|
'';
|
|
in
|
|
{
|
|
home.packages = [
|
|
pkgs.yt-dlp
|
|
(pkgs.writeScriptBin "ytp" myYtpScript)
|
|
(pkgs.writeScriptBin "yta" myYtaScript)
|
|
(pkgs.writeScriptBin "ytd" myYtdScript)
|
|
];
|
|
}
|