Begin the move to the import all, activate by config model
This commit is contained in:
parent
7397b614de
commit
07cb2d67a2
97 changed files with 776 additions and 633 deletions
|
@ -1,9 +1,11 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./spotdl
|
||||
./yt-dlp
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
yt-dlp
|
||||
spotdl
|
||||
playerctl
|
||||
ffmpeg
|
||||
alsa-utils
|
||||
puddletag
|
||||
|
|
5
modules/home/programs/misc/avtools/spotdl/default.nix
Normal file
5
modules/home/programs/misc/avtools/spotdl/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [ spotdl ];
|
||||
programs.zsh.shellAliases.spotdl = "spotdl --m3u --format opus";
|
||||
}
|
20
modules/home/programs/misc/avtools/yt-dlp/default.nix
Normal file
20
modules/home/programs/misc/avtools/yt-dlp/default.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs = {
|
||||
yt-dlp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
add-metadata = true;
|
||||
embed-thumbnail = true;
|
||||
convert-thumbnails = "jpg";
|
||||
audio-format = "opus";
|
||||
output = ''"%(artist)s - %(title)s.%(ext)s"'';
|
||||
};
|
||||
};
|
||||
zsh.shellAliases = {
|
||||
ytm3u = "yt-dlp -gS proto:m3u8";
|
||||
opusdl = ''yt-dlp -f ba -x --audio-quality 0'';
|
||||
spotdl = "spotdl --m3u --format opus";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue