From 26e57030eeb646ceeacf8771d5962fa50d7052b5 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Fri, 31 Jan 2020 15:15:48 +1300 Subject: [PATCH] add youtube-download-music --- configs/sterni/configuration.nix | 2 -- system/desktop/packages.nix | 8 ++++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/configs/sterni/configuration.nix b/configs/sterni/configuration.nix index f1dc120..dc0e739 100644 --- a/configs/sterni/configuration.nix +++ b/configs/sterni/configuration.nix @@ -14,8 +14,6 @@ ]; - - networking.hostName = "sterni"; system.custom.wifi.interfaces = [ "wlp3s0" ]; diff --git a/system/desktop/packages.nix b/system/desktop/packages.nix index 332b9cf..9eacd80 100644 --- a/system/desktop/packages.nix +++ b/system/desktop/packages.nix @@ -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