Install plex

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

View File

@ -2,7 +2,7 @@
{ {
# Setup hardware # Setup hardware
imports = [ inputs.nixos-hardware.nixosModules.common-cpu-intel ]; # imports = [ inputs.nixos-hardware.nixosModules.common-cpu-intel ];
# Sops setup for this machine # Sops setup for this machine
sops.secrets = { sops.secrets = {
"borg-ssh-key" = { "borg-ssh-key" = {
@ -52,12 +52,38 @@
# Setup home manager # Setup home manager
home-manager.users.nathan = import ./home.nix; home-manager.users.nathan = import ./home.nix;
## Media Streaming setup ## Media Streaming setup
# First enable hardware acceleration
# Setup hardware
hardware.opengl = { hardware.opengl = {
enable = true; enable = true;
driSupport = true; driSupport = true;
driSupport32Bit = true; driSupport32Bit = true;
extraPackages = with pkgs; [ libva vaapiIntel libvdpau-va-gl vaapiVdpau ];
};
# Newer kernel
boot.kernelPackages = pkgs.linuxKernel.packages.linux_6_2;
# Configure plex
services.plex = let
plexPass = pkgs.plex.override {
plexRaw = pkgs.plexRaw.overrideAttrs (_: rec {
version = "1.32.0.6918-6f393eda1";
src = pkgs.fetchurl {
url =
"https://downloads.plex.tv/plex-media-server-new/${version}/debian/plexmediaserver_${version}_amd64.deb";
sha256 = "sha256-9rGmUk0m7tBLSo5LeQ1fv2rnmK7WQ9AVDUPU0aqXLrM=";
};
});
};
in {
enable = true;
# package = plexPass;
package = inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.plex;
openFirewall = true;
};
# Configure tatulli
services.tautulli = {
enable = true;
openFirewall = true;
}; };
} }