feat(servers): add my module for declaring jellyfin config
All checks were successful
Discord / discord commits (push) Successful in 36s

This commit is contained in:
matt1432 2024-03-05 09:27:11 -05:00
parent 88d5d1bdd8
commit 29c32c8e49
4 changed files with 65 additions and 4 deletions

View file

@ -1,5 +1,6 @@
{
config,
jellyfin-flake,
lib,
...
}: let
@ -14,6 +15,7 @@ in {
imports = [
./jfa-go.nix
./packages.nix
jellyfin-flake.nixosModules.default
];
users.users."jellyfin".extraGroups =
@ -23,7 +25,36 @@ in {
++ optionalGroup "render";
services = {
jellyfin.enable = true;
jellyfin = {
enable = true;
settings = {
general = {
serverName = "Jelly";
quickConnectAvailable = false;
isStartupWizardCompleted = true;
branding.customCss = ''
'';
};
libraries.display = {
enableGroupingIntoCollections = true;
enableExternalContentInSuggestions = false;
};
playback.transcoding = {
hardwareAccelerationType = "nvenc";
hardwareDecodingCodecs = ["h264" "hevc" "mpeg2video" "mpeg4" "vc1" "vp8" "vp9" "av1"];
enableThrottling = true;
enableTonemapping = true;
downMixAudioBoost = 1;
};
advanced.logs.enableSlowResponseWarning = false;
};
};
nginx = {
enable = true;

View file

@ -1,4 +1,6 @@
{...}: {
{config, ...}: let
jellyService = config.systemd.services.jellyfin.serviceConfig;
in {
systemd.services."arion-jfa-go" = {
after = ["jellyfin.service"];
partOf = ["jellyfin.service"];
@ -11,7 +13,7 @@
ports = ["8056:8056"];
volumes = [
"/var/lib/jellyfin/jfa-go:/data"
"${jellyService.WorkingDirectory}/jfa-go:/data"
"/etc/localtime:/etc/localtime:ro"
];
};

View file

@ -630,6 +630,26 @@
"type": "github"
}
},
"jellyfin-flake": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1709648545,
"narHash": "sha256-TyhCoG1py0dRMFvjHo9DxExj5GERwXSdCI8hri5NI0M=",
"owner": "matt1432",
"repo": "nixos-jellyfin",
"rev": "5b423ad2e5566b404c58b790a46b7cee7592101a",
"type": "github"
},
"original": {
"owner": "matt1432",
"repo": "nixos-jellyfin",
"type": "github"
}
},
"lib-aggregate": {
"inputs": {
"flake-utils": "flake-utils_3",
@ -1339,6 +1359,7 @@
"hypridle": "hypridle",
"hyprland": "hyprland",
"hyprlock": "hyprlock",
"jellyfin-flake": "jellyfin-flake",
"modernx-src": "modernx-src",
"nh": "nh",
"nix-gaming": "nix-gaming",

View file

@ -157,7 +157,6 @@
repo = "nixos-pcsd";
};
# Oksys inputs
headscale = {
type = "github";
owner = "juanfont";
@ -186,6 +185,7 @@
inputs.nixpkgs.follows = "nixpkgs";
};
# Nos inputs
arion = {
type = "github";
owner = "hercules-ci";
@ -193,6 +193,13 @@
inputs.nixpkgs.follows = "nixpkgs";
};
jellyfin-flake = {
type = "github";
owner = "matt1432";
repo = "nixos-jellyfin";
inputs.nixpkgs.follows = "nixpkgs";
};
# Desktop inputs
hyprland = {