mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36:05 +01:00
animdl: add module
This commit is contained in:
parent
7a615e2a56
commit
20d75ecd36
4 changed files with 90 additions and 0 deletions
9
tests/modules/programs/animdl/config.yml
Normal file
9
tests/modules/programs/animdl/config.yml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
default_player: mpv
|
||||
default_provider: animixplay
|
||||
ffmpeg:
|
||||
executable: ffmpeg
|
||||
hls_download: false
|
||||
submerge: true
|
||||
quality_string: best[subtitle]/best
|
||||
site_urls:
|
||||
animixplay: https://www.animixplay.to/
|
||||
5
tests/modules/programs/animdl/default.nix
Normal file
5
tests/modules/programs/animdl/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
|
||||
animdl-example-config = ./example-config.nix;
|
||||
}
|
||||
22
tests/modules/programs/animdl/example-config.nix
Normal file
22
tests/modules/programs/animdl/example-config.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
programs.animdl = {
|
||||
enable = true;
|
||||
settings = {
|
||||
default_provider = "animixplay";
|
||||
site_urls.animixplay = "https://www.animixplay.to/";
|
||||
quality_string = "best[subtitle]/best";
|
||||
default_player = "mpv";
|
||||
ffmpeg = {
|
||||
executable = "ffmpeg";
|
||||
hls_download = false;
|
||||
submerge = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/animdl/config.yml
|
||||
assertFileContent home-files/.config/animdl/config.yml \
|
||||
${./config.yml}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue