Install plex
This commit is contained in:
parent
18e0f0ed2d
commit
0499f75522
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue