feat(servers): add jellyfin UI mods
All checks were successful
Discord / discord commits (push) Successful in 36s

This commit is contained in:
matt1432 2024-03-05 10:26:39 -05:00
parent 29c32c8e49
commit 3ec46db389
3 changed files with 56 additions and 3 deletions

View file

@ -1,7 +1,9 @@
{ {
config, config,
jellyfin-flake, jellyfin-flake,
jellyfin-ultrachromic-src,
lib, lib,
pkgs,
... ...
}: let }: let
inherit (lib) hasAttr fileContents optionals; inherit (lib) hasAttr fileContents optionals;
@ -35,9 +37,51 @@ in {
quickConnectAvailable = false; quickConnectAvailable = false;
isStartupWizardCompleted = true; isStartupWizardCompleted = true;
branding.customCss = '' branding = let
jellyTheme = pkgs.stdenv.mkDerivation {
name = "Ultrachromic";
src = jellyfin-ultrachromic-src;
postInstall = "cp -ar $src $out";
};
importFile = file: fileContents "${jellyTheme}/${file}";
in {
customCss = ''
/* Base theme */
${importFile "base.css"}
${importFile "accentlist.css"}
${importFile "fixes.css"}
${importFile "type/dark_withaccent.css"}
${importFile "rounding.css"}
${importFile "progress/floating.css"}
${importFile "titlepage/title_banner-logo.css"}
${importFile "header/header_transparent.css"}
${importFile "login/login_frame.css"}
${importFile "fields/fields_border.css"}
${importFile "cornerindicator/indicator_floating.css"}
/* Style backdrop */
.backdropImage {filter: blur(18px) saturate(120%) contrast(120%) brightness(40%);}
/* Custom Settings */
:root {--accent: 145,75,245;}
:root {--rounding: 12px;}
/* https://github.com/CTalvio/Ultrachromic/issues/79 */
.skinHeader {
color: rgba(var(--accent), 0.8);;
}
.countIndicator,
.fullSyncIndicator,
.mediaSourceIndicator,
.playedIndicator {
background-color: rgba(var(--accent), 0.8);
}
''; '';
}; };
};
libraries.display = { libraries.display = {
enableGroupingIntoCollections = true; enableGroupingIntoCollections = true;
@ -46,7 +90,16 @@ in {
playback.transcoding = { playback.transcoding = {
hardwareAccelerationType = "nvenc"; hardwareAccelerationType = "nvenc";
hardwareDecodingCodecs = ["h264" "hevc" "mpeg2video" "mpeg4" "vc1" "vp8" "vp9" "av1"]; hardwareDecodingCodecs = [
"h264"
"hevc"
"mpeg2video"
"mpeg4"
"vc1"
"vp8"
"vp9"
"av1"
];
enableThrottling = true; enableThrottling = true;
enableTonemapping = true; enableTonemapping = true;
downMixAudioBoost = 1; downMixAudioBoost = 1;

Binary file not shown.

BIN
flake.nix

Binary file not shown.