From 88017f5a874478dd82f306a5df88c38a8d06fcb6 Mon Sep 17 00:00:00 2001 From: tdback Date: Thu, 16 Jan 2025 19:57:13 -0500 Subject: fix: format flake with `nixfmt-rfc-style` --- modules/containers/jellyfin/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'modules/containers/jellyfin') 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" -- cgit v1.2.3