mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 06:19:00 +00:00
wrapperPackages/archive-setup: init
This commit is contained in:
parent
ef462c358e
commit
78193d5270
@ -9,6 +9,7 @@
|
||||
./home-manager.nix
|
||||
./nixos.nix
|
||||
./nixvim.nix
|
||||
./wrapper-manager.nix
|
||||
|
||||
# Subprojects.
|
||||
./bahaghari.nix
|
||||
|
14
configs/flake-parts/wrapper-manager.nix
Normal file
14
configs/flake-parts/wrapper-manager.nix
Normal file
@ -0,0 +1,14 @@
|
||||
{ lib, ... }:
|
||||
|
||||
{
|
||||
setups.wrapper-manager = {
|
||||
configs = {
|
||||
archive-setup = {
|
||||
systems = [ "x86_64-linux" ];
|
||||
nixpkgs.branch = "nixos-unstable";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
flake.wrapperManagerModules.default = ../../modules/wrapper-manager;
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
# Don't overwrite for cautious individuals.
|
||||
--no-overwrite
|
||||
|
||||
# To make sure all audio-related.
|
||||
--extract-audio
|
||||
--format bestaudio
|
||||
--audio-format opus
|
||||
|
||||
--output '%(album_artists.0,artists.0)s/%(album,playlist)s/%(track_number,playlist_index)d-%(track,title)s.%(ext)s'
|
||||
--download-archive music-archive
|
||||
|
||||
# Add all sorts of metadata.
|
||||
--embed-thumbnail
|
||||
--add-metadata
|
@ -0,0 +1,18 @@
|
||||
# Don't overwrite for cautious individuals.
|
||||
--no-overwrite
|
||||
|
||||
--output '%(uploader,artist,creator|Unknown)s/%(release_date>%F,upload_date>%F|Unknown)s-%(title)s.%(ext)s'
|
||||
--format '(webm,mkv,mp4)[height<=?1280]'
|
||||
--download-archive video-archive
|
||||
|
||||
# Don't download past live streams.
|
||||
--match-filters '!was_live'
|
||||
|
||||
# Add all sorts of metadata.
|
||||
--embed-thumbnail
|
||||
--embed-chapters
|
||||
--add-metadata
|
||||
|
||||
# Add some metadata into sidecar files or something.
|
||||
--write-info-json
|
||||
--write-descriptions
|
17
configs/wrapper-manager/archive-setup/default.nix
Normal file
17
configs/wrapper-manager/archive-setup/default.nix
Normal file
@ -0,0 +1,17 @@
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
wrappers.yt-dlp-audio = {
|
||||
arg0 = lib.getExe' pkgs.yt-dlp "yt-dlp";
|
||||
prependArgs = [
|
||||
"--config-location" ./config/yt-dlp/audio.conf
|
||||
];
|
||||
};
|
||||
|
||||
wrappers.yt-dlp-video = {
|
||||
arg0 = lib.getExe' pkgs.yt-dlp "yt-dlp";
|
||||
prependArgs = [
|
||||
"--config-location" ./config/yt-dlp/video.conf
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user