feat(servers): add jellyfin UI mods
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
29c32c8e49
commit
3ec46db389
3 changed files with 56 additions and 3 deletions
|
@ -1,7 +1,9 @@
|
|||
{
|
||||
config,
|
||||
jellyfin-flake,
|
||||
jellyfin-ultrachromic-src,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) hasAttr fileContents optionals;
|
||||
|
@ -35,9 +37,51 @@ in {
|
|||
quickConnectAvailable = false;
|
||||
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 = {
|
||||
enableGroupingIntoCollections = true;
|
||||
|
@ -46,7 +90,16 @@ in {
|
|||
|
||||
playback.transcoding = {
|
||||
hardwareAccelerationType = "nvenc";
|
||||
hardwareDecodingCodecs = ["h264" "hevc" "mpeg2video" "mpeg4" "vc1" "vp8" "vp9" "av1"];
|
||||
hardwareDecodingCodecs = [
|
||||
"h264"
|
||||
"hevc"
|
||||
"mpeg2video"
|
||||
"mpeg4"
|
||||
"vc1"
|
||||
"vp8"
|
||||
"vp9"
|
||||
"av1"
|
||||
];
|
||||
enableThrottling = true;
|
||||
enableTonemapping = true;
|
||||
downMixAudioBoost = 1;
|
||||
|
|
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