about summary refs log tree commit diff
path: root/home/yt-dlp/default.nix
blob: 4e9cdf4535b997ae93e509d5ced76a236c7ea87e (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;
  };
}