Merge branch 'main' into feature/8-neovim-lua
This commit is contained in:
commit
62ec1ab944
6 changed files with 35 additions and 10 deletions
|
@ -53,11 +53,14 @@ in {
|
||||||
csharp-ls
|
csharp-ls
|
||||||
cups
|
cups
|
||||||
curl
|
curl
|
||||||
|
dbeaver-bin
|
||||||
discord
|
discord
|
||||||
|
dolphin-emu
|
||||||
dotnet-sdk_8
|
dotnet-sdk_8
|
||||||
dotnetPackages.Nuget
|
dotnetPackages.Nuget
|
||||||
dunst
|
dunst
|
||||||
easytag
|
easytag
|
||||||
|
ffmpeg
|
||||||
firefox
|
firefox
|
||||||
flac
|
flac
|
||||||
flameshot
|
flameshot
|
||||||
|
|
|
@ -8,5 +8,6 @@
|
||||||
./neovim
|
./neovim
|
||||||
./picom
|
./picom
|
||||||
./polybar
|
./polybar
|
||||||
|
./yt-dlp
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
22
config/packages/yt-dlp/config
Normal file
22
config/packages/yt-dlp/config
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
# Output format: album/tracks.format
|
||||||
|
-o "%(album,playlist_title)U/%(track_number,playlist_index)s - %(title)U.%(ext)s"
|
||||||
|
--windows-filenames
|
||||||
|
# --restrict-filenames
|
||||||
|
|
||||||
|
# Extract audio
|
||||||
|
-f bestaudio
|
||||||
|
--extract-audio
|
||||||
|
--audio-format mp3
|
||||||
|
|
||||||
|
# Thumbnail squared
|
||||||
|
--convert-thumbnails png
|
||||||
|
--ppa "ThumbnailsConvertor+ffmpeg_o:-c:v png -vf crop=\"'if(gt(ih,iw),iw,ih)':'if(gt(iw,ih),ih,iw)'\""
|
||||||
|
--embed-thumbnail
|
||||||
|
|
||||||
|
# Metadata, with playlist number as track number if the latter is missing
|
||||||
|
--embed-metadata
|
||||||
|
--parse-metadata "playlist_index:%(track_number)s"
|
||||||
|
|
||||||
|
# Misc
|
||||||
|
--no-overwrites
|
||||||
|
--concurrent-fragments 4
|
3
config/packages/yt-dlp/default.nix
Normal file
3
config/packages/yt-dlp/default.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
home.file."/home/vylpes/.config/yt-dlp/config".source = ./config;
|
||||||
|
}
|
12
flake.lock
12
flake.lock
|
@ -7,11 +7,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1726818100,
|
"lastModified": 1726989464,
|
||||||
"narHash": "sha256-z2V74f5vXqkN5Q+goFlhbFXY/dNaBAyeLpr2bxu4Eic=",
|
"narHash": "sha256-Vl+WVTJwutXkimwGprnEtXc/s/s8sMuXzqXaspIGlwM=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "1bbc1a5a1f4de7401c92db85b2119ed21bb4139d",
|
"rev": "2f23fa308a7c067e52dfcc30a0758f47043ec176",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -23,11 +23,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1726838390,
|
"lastModified": 1729691686,
|
||||||
"narHash": "sha256-NmcVhGElxDbmEWzgXsyAjlRhUus/nEqPC5So7BOJLUM=",
|
"narHash": "sha256-BAuPWW+9fa1moZTU+jFh+1cUtmsuF8asgzFwejM4wac=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "944b2aea7f0a2d7c79f72468106bc5510cbf5101",
|
"rev": "32e940c7c420600ef0d1ef396dc63b04ee9cad37",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -114,10 +114,6 @@
|
||||||
gcm = "git commit -m";
|
gcm = "git commit -m";
|
||||||
gco = "git checkout";
|
gco = "git checkout";
|
||||||
|
|
||||||
yt-mp3 = "yt-dlp -xi --audio-format mp3";
|
|
||||||
yt-mp3-meta = "yt-dlp -xi --audio-format mp3 --parse-metadata \"playlist_index:%(track_number)s\" --add-metadata";
|
|
||||||
yt-mp3-meta-cookies = "yt-dlp -xi --audio-format mp3 --parse-metadata \"playlist_index:%(track_number)s\" --add-metadata --cookies-from-browser firefox";
|
|
||||||
|
|
||||||
s = "swallow";
|
s = "swallow";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue