feat(servers): add my module for declaring jellyfin config
All checks were successful
Discord / discord commits (push) Successful in 36s
All checks were successful
Discord / discord commits (push) Successful in 36s
This commit is contained in:
parent
88d5d1bdd8
commit
29c32c8e49
4 changed files with 36 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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"
|
||||
];
|
||||
};
|
||||
|
|
BIN
flake.lock
BIN
flake.lock
Binary file not shown.
BIN
flake.nix
BIN
flake.nix
Binary file not shown.
Loading…
Reference in a new issue