mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-05-18 18:36:05 -07:00
migrate yt-dlp
This commit is contained in:
parent
5c69bed319
commit
9e0e991920
@ -3,6 +3,7 @@
|
||||
imports = [
|
||||
../programs/beancount.nix
|
||||
../programs/borg.nix
|
||||
../programs/yt-dlp.nix
|
||||
];
|
||||
options.modules.extra.enable = lib.mkEnableOption "extra";
|
||||
}
|
||||
|
@ -3,6 +3,5 @@
|
||||
imports = [
|
||||
./appgate-sdp.nix
|
||||
./virt-manager.nix
|
||||
./yt-dlp.nix
|
||||
];
|
||||
}
|
||||
|
@ -7,6 +7,7 @@ in {
|
||||
environment.systemPackages = with pkgs; [
|
||||
virt-manager # Desktop application for managing virtual machines through libvirt
|
||||
];
|
||||
|
||||
virtualisation.libvirtd.enable = true;
|
||||
programs.dconf.enable = true;
|
||||
};
|
||||
|
@ -1,15 +1,5 @@
|
||||
{ config, lib, pkgs, user, ... }:
|
||||
|
||||
let cfg = config.modules.programs.yt-dlp;
|
||||
in {
|
||||
options.modules.programs.yt-dlp = with lib; {
|
||||
enable = lib.mkOption {
|
||||
type = with types; bool;
|
||||
default = true;
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
yt-dlp # Command-line tool to download videos
|
||||
(pkgs.writeScriptBin "ytd_audio" ''
|
||||
@ -19,5 +9,4 @@ in {
|
||||
--embed-thumbnail -S acodec:m4a "$1"
|
||||
'')
|
||||
];
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user