Install plex

This commit is contained in:
Nathan McCarty 2023-04-09 00:41:21 -04:00
parent 18e0f0ed2d
commit 0499f75522
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
1 changed files with 17 additions and 4 deletions

View File

@ -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;
};
}