From e49b33fe446ca5a47f9eb04b5163609835db3dad Mon Sep 17 00:00:00 2001 From: tdback Date: Thu, 9 Jan 2025 20:31:34 -0500 Subject: fix: cleanup container configs --- modules/containers/jellyfin/default.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'modules/containers/jellyfin/default.nix') diff --git a/modules/containers/jellyfin/default.nix b/modules/containers/jellyfin/default.nix index d9c26cb..d4923ae 100644 --- a/modules/containers/jellyfin/default.nix +++ b/modules/containers/jellyfin/default.nix @@ -1,18 +1,16 @@ { lib, ... }: let + inherit (lib.lists) singleton; directory = "/opt/jellyfin"; in { - systemd.tmpfiles.rules = - map (x: "d ${x} 0755 share share - -") (lib.lists.singleton directory); + systemd.tmpfiles.rules = builtins.map (x: "d ${x} 0755 share share - -") (singleton directory); virtualisation.oci-containers.containers.jellyfin = { image = "jellyfin/jellyfin:latest"; autoStart = true; user = "994:994"; - ports = [ - "8096:8096/tcp" - ]; + ports = singleton "8096:8096/tcp"; volumes = [ "${directory}/config:/config" "${directory}/cache:/cache" -- cgit v1.2.3