Add yt-dlp module for download web videos

This commit is contained in:
Yan Lin 2025-09-16 01:35:05 +02:00
parent 6482a70f7a
commit a91efe6818
9 changed files with 328 additions and 1 deletions

View file

@ -17,6 +17,7 @@
../../modules/ghostty.nix
../../modules/syncthing.nix
../../modules/dictionary.nix
../../modules/yt-dlp.nix
../../config/fonts.nix
];

View file

@ -8,4 +8,9 @@
# iMac-specific home configuration
# Example: Different screen setup, desktop-specific tools, etc.
# yt-dlp configuration
programs.yt-dlp-custom = {
enable = true;
downloadDir = "~/Downloads/Videos";
};
}

View file

@ -8,4 +8,9 @@
# MacBook Air-specific home configuration
# Example: Laptop-specific tools, power management, etc.
# yt-dlp configuration
programs.yt-dlp-custom = {
enable = true;
downloadDir = "~/Downloads/Videos";
};
}

View file

@ -13,6 +13,7 @@
../../modules/rsync.nix
../../modules/btop.nix
../../modules/dictionary.nix
../../modules/yt-dlp.nix
../../config/fonts.nix
];

View file

@ -7,6 +7,13 @@
];
# hs-specific home configuration
# yt-dlp configuration - store videos on large storage
programs.yt-dlp-custom = {
enable = true;
downloadDir = "/mnt/storage/Media/Web";
};
programs.zsh.shellAliases = {
# Disk health monitoring
smart-report = "sudo SMART_DRIVES='/dev/disk/by-id/ata-ZHITAI_SC001_XT_1000GB_ZTB401TAB244431J4R:ZFS_Mirror_1;/dev/disk/by-id/ata-ZHITAI_SC001_XT_1000GB_ZTB401TAB244431KEG:ZFS_Mirror_2;/dev/disk/by-id/ata-HGST_HUH721212ALE604_5PK2N4GB:Data_Drive_1_12TB;/dev/disk/by-id/ata-HGST_HUH721212ALE604_5PJ7Z3LE:Data_Drive_2_12TB;/dev/disk/by-id/ata-ST16000NM000J-2TW103_WRS0F8BE:Parity_Drive_16TB' /home/yanlin/.config/nix/scripts/daily-smart-report.sh Ac9qKFH5cA.7Yly";