added jellyfin config to flake
This commit is contained in:
parent
041def9516
commit
ccee2d497f
@ -97,6 +97,51 @@
|
|||||||
services.jellyfin = {
|
services.jellyfin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
|
settings = {
|
||||||
|
system = {
|
||||||
|
serverName = "Jellyfin";
|
||||||
|
quickConnectAvailable = false;
|
||||||
|
isStartupWizardCompleted = true;
|
||||||
|
|
||||||
|
enableGroupingIntoCollections = true;
|
||||||
|
enableExternalContentInSuggestions = false;
|
||||||
|
|
||||||
|
pluginRepositories = [
|
||||||
|
{
|
||||||
|
name = "Jellyfin Stable";
|
||||||
|
url = "https://repo.jellyfin.org/releases/plugin/manifest-stable.json";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Intro Skipper";
|
||||||
|
url = "https://raw.githubusercontent.com/jumoog/intro-skipper/master/manifest.json";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Merge Versions Plugin";
|
||||||
|
url = "https://raw.githubusercontent.com/danieladov/JellyfinPluginManifest/master/manifest.json";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
enableSlowResponseWarning = false;
|
||||||
|
};
|
||||||
|
encoding = {
|
||||||
|
hardwareAccelerationType = "qsv";
|
||||||
|
hardwareDecodingCodecs = [
|
||||||
|
"h264"
|
||||||
|
"hevc"
|
||||||
|
"mpeg2video"
|
||||||
|
"mpeg4"
|
||||||
|
"vc1"
|
||||||
|
"vp8"
|
||||||
|
"vp9"
|
||||||
|
"av1"
|
||||||
|
];
|
||||||
|
enableIntelLowPowerH264HwEncoder = true;
|
||||||
|
enableIntelLowPowerHevcHwEncoder = true;
|
||||||
|
enableThrottling = false;
|
||||||
|
enableTonemapping = true;
|
||||||
|
downMixAudioBoost = 1;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
# 1. enable vaapi on OS-level
|
# 1. enable vaapi on OS-level
|
||||||
nixpkgs.config.packageOverrides = pkgs: {
|
nixpkgs.config.packageOverrides = pkgs: {
|
||||||
|
27
flake.lock
27
flake.lock
@ -1,5 +1,25 @@
|
|||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
|
"jellyfin-flake": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1737838264,
|
||||||
|
"narHash": "sha256-RVqdS+sL6PhylRdLRb0g7wukPI76ubqDb+8a5ERIN0U=",
|
||||||
|
"owner": "matt1432",
|
||||||
|
"repo": "nixos-jellyfin",
|
||||||
|
"rev": "247094619b577231bb2fc5df46b035691dc55490",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "matt1432",
|
||||||
|
"repo": "nixos-jellyfin",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1737751639,
|
"lastModified": 1737751639,
|
||||||
@ -18,11 +38,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1738180640,
|
"lastModified": 1738262481,
|
||||||
"narHash": "sha256-rmO6ReqH9sFi9BT5bMhG4GwulwWRuTbpV4ehSuF0pqY=",
|
"narHash": "sha256-CkKu6q7KeWp4PVf/FwanlDMRWuQQ8FDxTe8PBQKm3Dg=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "8ec8d740a6efded206d803abdbb34587d0a56eb7",
|
"rev": "299b21a844a9d0f7b050576b63db7e40fc8d8b89",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -34,6 +54,7 @@
|
|||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"jellyfin-flake": "jellyfin-flake",
|
||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
}
|
}
|
||||||
|
15
flake.nix
15
flake.nix
@ -3,21 +3,28 @@
|
|||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/release-24.11";
|
nixpkgs.url = "github:nixos/nixpkgs/release-24.11";
|
||||||
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||||
|
jellyfin-flake = {
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
owner = "matt1432";
|
||||||
|
repo = "nixos-jellyfin";
|
||||||
|
type = "github";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, nixos-hardware, ... }:
|
outputs = { self, nixpkgs, nixos-hardware, jellyfin-flake, ... }:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
in {
|
in {
|
||||||
|
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
media-macmini = lib.nixosSystem {
|
media-server = lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
# add your model from this list: https://github.com/NixOS/nixos-hardware/blob/master/flake.nix
|
# add your model from this list: https://github.com/NixOS/nixos-hardware/blob/master/flake.nix
|
||||||
nixos-hardware.nixosModules.apple-macmini-4-1
|
#nixos-hardware.nixosModules.apple-macmini-4-1
|
||||||
|
jellyfin-flake.nixosModules.default
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user