containers: add stremio
This commit is contained in:
parent
7b1d62830a
commit
ab3c3ed9e6
3 changed files with 42 additions and 0 deletions
41
options/custom/containers/stremio.nix
Normal file
41
options/custom/containers/stremio.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.custom.containers.stremio;
|
||||
in {
|
||||
options.custom.containers.stremio = {
|
||||
enable = mkEnableOption "stremio";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
#?? arion-stremio pull
|
||||
environment.shellAliases.arion-stremio = "sudo arion --prebuilt-file ${config.virtualisation.arion.projects.stremio.settings.out.dockerComposeYaml}";
|
||||
|
||||
virtualisation.arion.projects.stremio.settings.services = {
|
||||
# https://www.stremio.com/
|
||||
# https://github.com/tsaridas/stremio-docker
|
||||
stremio.service = {
|
||||
container_name = "stremio";
|
||||
image = "tsaridas/stremio-docker:v1.1.118";
|
||||
restart = "unless-stopped";
|
||||
volumes = ["${config.custom.containers.directory}/stremio/data:/root/.stremio-server"];
|
||||
|
||||
ports = [
|
||||
"127.0.0.1:8470:8080/tcp"
|
||||
"127.0.0.1:11470:11470/tcp"
|
||||
];
|
||||
|
||||
environment = {
|
||||
# TODO: Use internal server when implemented
|
||||
# https://github.com/tsaridas/stremio-docker/issues/78
|
||||
DISABLE_CACHING = 1;
|
||||
SERVER_URL = "https://api.tv.${config.custom.domain}/";
|
||||
WEBUI_LOCATION = "https://tv.${config.custom.domain}/";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -27,6 +27,7 @@
|
|||
#// owncast.enable = true;
|
||||
redlib.enable = true;
|
||||
searxng.enable = true;
|
||||
stremio.enable = true;
|
||||
vaultwarden.enable = true;
|
||||
};
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Add table
Reference in a new issue