Modules/JellyfinTUI: Generate config in path depending on system (nixos/darwin)
This commit is contained in:
@ -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;
|
||||||
|
})
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user