about summary refs log tree commit diff
path: root/home/yt-dlp/default.nix
blob: 4ac1fb9d9476dad24a2c489ec6683c30490f0cbe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
{ 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;
  };
}