add youtube-download-music

This commit is contained in:
Ingolf Wagner 2020-01-31 15:15:48 +13:00
parent a37495cc43
commit 26e57030ee
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
2 changed files with 8 additions and 2 deletions

View file

@ -14,8 +14,6 @@
];
networking.hostName = "sterni";
system.custom.wifi.interfaces = [ "wlp3s0" ];

View file

@ -299,6 +299,14 @@ in {
'')
powertop
(pkgs.writers.writeBashBin "youtube-download-music" ''
${pkgs.youtube-dl}/bin/youtube-dl \
--extract-audio \
--audio-format vorbis \
--audio-quality 0 \
"$@"
'')
memo
nixfmt
dateutils