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 pkgs.jellyfin-tui
]; ];
file = { file = let
".config/jellyfin-tui/config.yaml".text = '' configFile = ''
servers: servers:
- name: Mafia Dortmund - name: Mafia Dortmund
url: https://jellyfin.local.chriphost.de url: https://jellyfin.local.chriphost.de
@ -72,7 +72,15 @@ in {
prefetch-playlist: yes prefetch-playlist: yes
replaygain: no 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;
})
];
}; };
}; };
} }