1

Modules/JellyfinTUI: Generate config in path depending on system (nixos/darwin)

This commit is contained in:
2026-03-26 21:35:53 +01:00
parent 7f22089765
commit 4639fd8c7e

View File

@ -22,8 +22,8 @@ in {
pkgs.jellyfin-tui
];
file = {
".config/jellyfin-tui/config.yaml".text = ''
file = let
configFile = ''
servers:
- name: Mafia Dortmund
url: https://jellyfin.local.chriphost.de
@ -72,7 +72,15 @@ in {
prefetch-playlist: yes
replaygain: no
'';
};
in
lib.mkMerge [
(lib.optionalAttrs pkgs.stdenv.isLinux {
".config/jellyfin-tui/config.yaml".text = configFile;
})
(lib.optionalAttrs pkgs.stdenv.isDarwin {
"Library/Application Support/jellyfin-tui/config.yaml".text = configFile;
})
];
};
};
}