aboutsummaryrefslogtreecommitdiff
path: root/modules/containers/jellyfin/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/containers/jellyfin/default.nix')
-rw-r--r--modules/containers/jellyfin/default.nix7
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/containers/jellyfin/default.nix b/modules/containers/jellyfin/default.nix
index d4923ae..a7b9557 100644
--- a/modules/containers/jellyfin/default.nix
+++ b/modules/containers/jellyfin/default.nix
@@ -1,16 +1,15 @@
-{ lib, ... }:
+{ ... }:
let
- inherit (lib.lists) singleton;
directory = "/opt/jellyfin";
in
{
- systemd.tmpfiles.rules = builtins.map (x: "d ${x} 0755 share share - -") (singleton directory);
+ systemd.tmpfiles.rules = builtins.map (x: "d ${x} 0755 share share - -") [ directory ];
virtualisation.oci-containers.containers.jellyfin = {
image = "jellyfin/jellyfin:latest";
autoStart = true;
user = "994:994";
- ports = singleton "8096:8096/tcp";
+ ports = [ "8096:8096/tcp" ];
volumes = [
"${directory}/config:/config"
"${directory}/cache:/cache"