1

Modules/JellyfinTUI: Reference nixos/darwin config depending on system

This commit is contained in:
2026-03-26 21:13:04 +01:00
parent c9a4b1a428
commit 8c53eaf570

View File

@ -1,12 +1,18 @@
{
config,
nixosConfig,
darwinConfig,
lib,
mylib,
pkgs,
...
}: let
inherit (config.homemodules) jellyfin-tui color;
systemConfig =
if pkgs.stdenv.isLinux
then nixosConfig
else darwinConfig;
in {
options.homemodules.jellyfin-tui = import ./options.nix {inherit lib mylib;};
@ -22,7 +28,7 @@ in {
- name: Mafia Dortmund
url: https://jellyfin.local.chriphost.de
username: root
password_file: ${nixosConfig.sops.secrets.jellyfin-password.path}
password_file: ${systemConfig.sops.secrets.jellyfin-password.path}
default: true
# All following settings are OPTIONAL. What you see here are the defaults.