mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 09:29:41 +08:00
yt-dlp: remove redundant extraConfig test
This commit is contained in:
committed by
Robert Helgesson
parent
b558d54215
commit
78a8fae57f
@@ -1,5 +1,4 @@
|
||||
{ lib, pkgs, ... }:
|
||||
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
|
||||
yt-dlp-simple-config = ./yt-dlp-simple-config.nix;
|
||||
yt-dlp-extraConfig = ./yt-dlp-extraConfig.nix;
|
||||
yt-dlp-config = ./yt-dlp-config.nix;
|
||||
}
|
||||
|
||||
@@ -20,6 +20,6 @@
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/yt-dlp/config
|
||||
assertFileContent home-files/.config/yt-dlp/config ${./yt-dlp-simple-config-expected}
|
||||
assertFileContent home-files/.config/yt-dlp/config ${./yt-dlp-config-expected}
|
||||
'';
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
--config-locations /home/user/.yt-dlp.conf
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
{
|
||||
programs.yt-dlp = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
--config-locations /home/user/.yt-dlp.conf
|
||||
'';
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/yt-dlp/config
|
||||
assertFileContent home-files/.config/yt-dlp/config ${./yt-dlp-extraConfig-expected}
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user