From 0499f755225edc7d3e206c1f13b446ee8d7f9528 Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Sun, 9 Apr 2023 00:41:21 -0400 Subject: [PATCH] Install plex --- machines/perception/configuration.nix | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/machines/perception/configuration.nix b/machines/perception/configuration.nix index 9768751..730c1fc 100644 --- a/machines/perception/configuration.nix +++ b/machines/perception/configuration.nix @@ -25,6 +25,10 @@ }; }; config = { + swaywm = { + # Not actually a work station i just want hardware encoding to work right :( + enable = true; + }; setupGrub = false; nix = { autoUpdate = true; @@ -54,10 +58,19 @@ home-manager.users.nathan = import ./home.nix; ## Media Streaming setup - # First enable hardware acceleration - hardware.opengl = { + # Configure plex + services.plex = let + plexPass = pkgs.plex.overrideAttrs (_: rec { + version = "1.32.0.6918-6f393eda1"; + src = pkgs.fetchurl { + url = + "https://downloads.plex.tv/plex-media-server-new/${version}/redhat/plexmediaserver-${version}.x86_64.rpm"; + hash = "sha256-O8JGZUPqGjx+WamnBWjnnwPRuUuf1AzaOFmEv+6GZZo="; + }; + }); + in { enable = true; - driSupport = true; - driSupport32Bit = true; + package = plexPass; + openFirewall = true; }; }