nixos/suwayomi-server: add option `settings.server.extensionRepos`

This option is now a key feature of Suwayomi-Server, so it is
interesting to have it directly available in a quick search.
This commit is contained in:
RatCornu 2024-02-24 19:32:03 +01:00
parent 2d2ccff700
commit 2f460b3f53
No known key found for this signature in database
GPG Key ID: B3BE02E379E6E8E2
2 changed files with 14 additions and 0 deletions

View File

@ -101,6 +101,9 @@ Not all the configuration options are available directly in this module, but you
port = 4567;
autoDownloadNewChapters = false;
maxSourcesInParallel" = 6;
extensionRepos = [
"https://raw.githubusercontent.com/MY_ACCOUNT/MY_REPO/repo/index.min.json"
];
};
};
};

View File

@ -102,6 +102,17 @@ in
'';
};
extensionRepos = mkOption {
type = types.listOf types.str;
default = [];
example = [
"https://raw.githubusercontent.com/MY_ACCOUNT/MY_REPO/repo/index.min.json"
];
description = mdDoc ''
URL of repositories from which the extensions can be installed.
'';
};
localSourcePath = mkOption {
type = types.path;
default = cfg.dataDir;