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