Install plex
This commit is contained in:
parent
18e0f0ed2d
commit
0499f75522
|
@ -25,6 +25,10 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config = {
|
config = {
|
||||||
|
swaywm = {
|
||||||
|
# Not actually a work station i just want hardware encoding to work right :(
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
setupGrub = false;
|
setupGrub = false;
|
||||||
nix = {
|
nix = {
|
||||||
autoUpdate = true;
|
autoUpdate = true;
|
||||||
|
@ -54,10 +58,19 @@
|
||||||
home-manager.users.nathan = import ./home.nix;
|
home-manager.users.nathan = import ./home.nix;
|
||||||
|
|
||||||
## Media Streaming setup
|
## Media Streaming setup
|
||||||
# First enable hardware acceleration
|
# Configure plex
|
||||||
hardware.opengl = {
|
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;
|
enable = true;
|
||||||
driSupport = true;
|
package = plexPass;
|
||||||
driSupport32Bit = true;
|
openFirewall = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue