From afc6e7c94c99b2fb1fdbd5dd392564a71fe93522 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Thu, 21 Nov 2024 17:51:59 -0600 Subject: [PATCH] correct podman device --- nixos/modules/nixos/containers/jellyfin/default.nix | 2 +- nixos/modules/nixos/containers/plex/default.nix | 2 +- nixos/modules/nixos/containers/scrypted/default.nix | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/modules/nixos/containers/jellyfin/default.nix b/nixos/modules/nixos/containers/jellyfin/default.nix index 6c21f83..449c164 100644 --- a/nixos/modules/nixos/containers/jellyfin/default.nix +++ b/nixos/modules/nixos/containers/jellyfin/default.nix @@ -50,7 +50,7 @@ in ports = [ "${toString port}:${toString port}" ]; # expose port extraOptions = [ - # "--runtime=nvidia" + "--device nvidia.com/gpu=all" ]; }; diff --git a/nixos/modules/nixos/containers/plex/default.nix b/nixos/modules/nixos/containers/plex/default.nix index f15b9c3..d79b62c 100644 --- a/nixos/modules/nixos/containers/plex/default.nix +++ b/nixos/modules/nixos/containers/plex/default.nix @@ -40,7 +40,7 @@ in ]; extraOptions = [ - "--runtime=nvidia" + "--device nvidia.com/gpu=all" ]; environment = { diff --git a/nixos/modules/nixos/containers/scrypted/default.nix b/nixos/modules/nixos/containers/scrypted/default.nix index 11fd385..793f101 100644 --- a/nixos/modules/nixos/containers/scrypted/default.nix +++ b/nixos/modules/nixos/containers/scrypted/default.nix @@ -43,7 +43,7 @@ in # all usb devices, such as coral tpu "--device=/dev/bus/usb" "--network=host" - "--runtime=nvidia" + "--device nvidia.com/gpu=all" ]; environment = {