heimdall: Jellyfin S3 support

This commit is contained in:
Filippo Berto 2026-02-22 14:40:06 +01:00
parent 9cc36254cc
commit 98e2905a70
No known key found for this signature in database
GPG key ID: F1D17F9BCEC62FBC
4 changed files with 58 additions and 0 deletions

33
nixos/jellyfin.nix Normal file
View file

@ -0,0 +1,33 @@
{ pkgs, config, ... }: {
age.secrets.rclone_jellyfin = {
file = ../secrets/rclone_jellyfin.age;
owner = "jellyfin";
};
services.jellyfin = {
enable = true;
openFirewall = true;
group = "users";
};
environment.systemPackages = [ pkgs.rclone ];
fileSystems."/var/lib/jellyfin/media" = {
device = "garage:/";
fsType = "rclone";
options = [
"nodev"
"nofail"
"_netdev"
"allow_other"
"uid=jellyfin"
"gid=users"
"X-mount.mkdir"
"args2env"
"vfs_cache_mode=writes"
"s3_upload_concurrency=32"
"s3_chunk_size=128000"
"config=${config.age.secrets.rclone_jellyfin.path}"
];
};
}