aboutsummaryrefslogtreecommitdiff
path: root/modules/containers/jellyfin/default.nix
diff options
context:
space:
mode:
authortdback <tyler@tdback.net>2025-01-09 20:31:34 -0500
committertdback <tyler@tdback.net>2025-01-09 20:31:34 -0500
commite49b33fe446ca5a47f9eb04b5163609835db3dad (patch)
treef296680bcb3d97c6b987798f6742a09b72e1ebac /modules/containers/jellyfin/default.nix
parented190095730b183dca262a913a0b15e74a4d27fa (diff)
fix: cleanup container configs
Diffstat (limited to 'modules/containers/jellyfin/default.nix')
-rw-r--r--modules/containers/jellyfin/default.nix8
1 files changed, 3 insertions, 5 deletions
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"