hosts/library: add jellysearch
All checks were successful
Check flake / build-amd64-linux (push) Successful in 1m17s
All checks were successful
Check flake / build-amd64-linux (push) Successful in 1m17s
This commit is contained in:
34
hosts/library/jellysearch.nix
Normal file
34
hosts/library/jellysearch.nix
Normal file
@ -0,0 +1,34 @@
|
||||
{
|
||||
inputs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
age.secrets."files/services/meilisearch/envfile" = {
|
||||
file = "${inputs.secrets}/files/services/meilisearch/envfile.age";
|
||||
};
|
||||
|
||||
services.meilisearch = {
|
||||
enable = true;
|
||||
masterKeyEnvironmentFile = config.age.secrets."files/services/meilisearch/envfile".path;
|
||||
};
|
||||
|
||||
virtualisation.oci-containers.containers = {
|
||||
jellysearch = {
|
||||
image = "domistyle/jellysearch";
|
||||
environment = {
|
||||
INDEX_CRON = "0 0 0/2 ? * * *";
|
||||
JELLYFIN_URL = "http://localhost:8096";
|
||||
MEILI_URL = "http://localhost:${toString config.services.meilisearch.listenPort}";
|
||||
};
|
||||
environmentFiles = [
|
||||
config.age.secrets."files/services/meilisearch/envfile".path
|
||||
];
|
||||
volumes = [
|
||||
"${toString config.services.jellyfin.configDir}:/config:ro"
|
||||
];
|
||||
extraOptions = [ "--network=host" ];
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user