diff options
Diffstat (limited to 'home/yt-dlp/default.nix')
-rw-r--r-- | home/yt-dlp/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/home/yt-dlp/default.nix b/home/yt-dlp/default.nix index ce42014..a366f1f 100644 --- a/home/yt-dlp/default.nix +++ b/home/yt-dlp/default.nix @@ -1,12 +1,12 @@ { config, lib, pkgs, ... }: let cfg = config.my.home.yt-dlp; in { - options.my.home.yt-dlp = with lib.my; { + options.my.home.yt-dlp = with lib; { enable = mkEnableOption "yt-dlp configuration"; }; - config.programs.yt-dlp = lib.mkIf cfg.enable { - config.home.packages = with pkgs; [ yt-dlp ]; + config = lib.mkIf cfg.enable { + home.packages = with pkgs; [ yt-dlp ]; xdg.configFile."yt-dlp/config".source = config; }; } |