From 2ad550029420d0c7dedaa7d279f30a1665489542 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 27 Jan 2025 13:37:52 +0000 Subject: [PATCH] change jellyfin to oci container --- .../optional/arion-containers/jellyfin.nix | 5 ++++- .../common/optional/nixos-containers/docker.nix | 16 ++++------------ 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/hosts/common/optional/arion-containers/jellyfin.nix b/hosts/common/optional/arion-containers/jellyfin.nix index 0792ea3..600eefe 100644 --- a/hosts/common/optional/arion-containers/jellyfin.nix +++ b/hosts/common/optional/arion-containers/jellyfin.nix @@ -20,8 +20,11 @@ PUID = "1000"; PGID = "1000"; DOCKER_MODS = "linuxserver/mods:jellyfin-opencl-intel"; + NVIDIA_VISIBLE_DEVICES = "all"; }; - extraOptions = ["--gpus=all"]; + extraOptions = [ + "--device=nvidia.com/gpu=all" + ]; }; }; }; diff --git a/hosts/common/optional/nixos-containers/docker.nix b/hosts/common/optional/nixos-containers/docker.nix index cc74b46..6b1f7b2 100644 --- a/hosts/common/optional/nixos-containers/docker.nix +++ b/hosts/common/optional/nixos-containers/docker.nix @@ -53,6 +53,10 @@ in { node = "/dev/nvidiactl"; modifier = "rwm"; } + { + node = "/dev/nvidia-uvm"; + modifier = "rwm"; + } { node = "/dev/fuse"; modifier = "rwm"; @@ -204,18 +208,6 @@ in { networking.firewall.interfaces."podman+".allowedUDPPorts = [53]; - systemd.services.podman-autostart = { - enable = true; - after = ["podman.service"]; - wantedBy = ["multi-user.target"]; - description = "Automatically start containers with --restart=always tag"; - serviceConfig = { - Type = "idle"; - ExecStartPre = ''${pkgs.coreutils}/bin/sleep 1''; - ExecStart = ''/run/current-system/sw/bin/podman start --all --filter restart-policy=always''; - }; - }; - services.prometheus = { exporters = { node = {