about summary refs log tree commit diff
path: root/home/yt-dlp/default.nix
blob: a366f1ffdacae1743b28513605b980bcd48a84b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
{ config, lib, pkgs, ... }:
let cfg = config.my.home.yt-dlp;
in {
  options.my.home.yt-dlp = with lib; {
    enable = mkEnableOption "yt-dlp configuration";
  };

  config = lib.mkIf cfg.enable {
    home.packages = with pkgs; [ yt-dlp ];
    xdg.configFile."yt-dlp/config".source = config;
  };
}