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