From 8c53eaf57070554c3949f229d2f75f88db2f42f2 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Thu, 26 Mar 2026 21:13:04 +0100 Subject: [PATCH] Modules/JellyfinTUI: Reference nixos/darwin config depending on system --- home/homemodules/jellyfin-tui/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/home/homemodules/jellyfin-tui/default.nix b/home/homemodules/jellyfin-tui/default.nix index c850a5a0..fbc7c484 100644 --- a/home/homemodules/jellyfin-tui/default.nix +++ b/home/homemodules/jellyfin-tui/default.nix @@ -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.