Jellyfin hardware transcoding
This commit is contained in:
parent
94bd2662a5
commit
a68a995a59
3 changed files with 13 additions and 10 deletions
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||
darwin = {
|
||||
url = "github:LnL7/nix-darwin";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
lib,
|
||||
modulesPath,
|
||||
...
|
||||
|
|
@ -7,7 +7,6 @@
|
|||
{
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
inputs.nixos-hardware.nixosModules.common-cpu-intel
|
||||
];
|
||||
|
||||
boot = {
|
||||
|
|
@ -57,8 +56,15 @@
|
|||
interfaces.eno1.wakeOnLan.enable = true;
|
||||
};
|
||||
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
extraPackages = with pkgs; [
|
||||
intel-media-driver
|
||||
];
|
||||
};
|
||||
|
||||
environment.sessionVariables = {
|
||||
LIBVA_DRIVER_NAME = "i965"; # Prefered for Skylake processors
|
||||
LIBVA_DRIVER_NAME = "iHD";
|
||||
};
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
|
|
|
|||
|
|
@ -1,12 +1,10 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
services.jellyfin.enable = true; # port = 8096
|
||||
environment.systemPackages = [
|
||||
pkgs.jellyfin
|
||||
pkgs.jellyfin-web
|
||||
pkgs.jellyfin-ffmpeg
|
||||
users.users.jellyfin.extraGroups = [
|
||||
"media"
|
||||
"video"
|
||||
"render"
|
||||
];
|
||||
users.users.jellyfin.extraGroups = [ "media" ];
|
||||
|
||||
## Grab EPG data daily
|
||||
virtualisation.oci-containers = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue