Make library mount readonly in jellyfin

This commit is contained in:
2023-05-30 22:00:15 +01:00
parent 13cdc13a79
commit afac3e5548

View File

@ -70,6 +70,7 @@ with lib.my;
enable = true; enable = true;
extraPackages = [ pkgs.zfs ]; extraPackages = [ pkgs.zfs ];
}; };
virtualisation.containers.storage.settings = { virtualisation.containers.storage.settings = {
storage = { storage = {
driver = "zfs"; driver = "zfs";
@ -77,6 +78,7 @@ with lib.my;
runroot = "/run/containers/storage"; runroot = "/run/containers/storage";
}; };
}; };
virtualisation.oci-containers.containers = { virtualisation.oci-containers.containers = {
jellyfin = { jellyfin = {
image = "docker.io/jellyfin/jellyfin:10.8.10"; image = "docker.io/jellyfin/jellyfin:10.8.10";
@ -91,7 +93,7 @@ with lib.my;
"--privileged" "--privileged"
"--label=io.containers.autoupdate=registry" "--label=io.containers.autoupdate=registry"
"--group-add=989" "--group-add=989"
"--mount=type=bind,source=/mnt/library,target=/library,ro=true" "--mount=type=bind,source=/mnt/library,target=/library,ro"
"--device=/dev/dri:/dev/dri" "--device=/dev/dri:/dev/dri"
]; ];
}; };