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,
|
config,
|
||||||
|
jellyfin-flake,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
|
@ -14,6 +15,7 @@ in {
|
||||||
imports = [
|
imports = [
|
||||||
./jfa-go.nix
|
./jfa-go.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
|
jellyfin-flake.nixosModules.default
|
||||||
];
|
];
|
||||||
|
|
||||||
users.users."jellyfin".extraGroups =
|
users.users."jellyfin".extraGroups =
|
||||||
|
@ -23,7 +25,36 @@ in {
|
||||||
++ optionalGroup "render";
|
++ optionalGroup "render";
|
||||||
|
|
||||||
services = {
|
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 = {
|
nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
{...}: {
|
{config, ...}: let
|
||||||
|
jellyService = config.systemd.services.jellyfin.serviceConfig;
|
||||||
|
in {
|
||||||
systemd.services."arion-jfa-go" = {
|
systemd.services."arion-jfa-go" = {
|
||||||
after = ["jellyfin.service"];
|
after = ["jellyfin.service"];
|
||||||
partOf = ["jellyfin.service"];
|
partOf = ["jellyfin.service"];
|
||||||
|
@ -11,7 +13,7 @@
|
||||||
ports = ["8056:8056"];
|
ports = ["8056:8056"];
|
||||||
|
|
||||||
volumes = [
|
volumes = [
|
||||||
"/var/lib/jellyfin/jfa-go:/data"
|
"${jellyService.WorkingDirectory}/jfa-go:/data"
|
||||||
"/etc/localtime:/etc/localtime:ro"
|
"/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