fix immich config var

This commit is contained in:
Yan Lin 2026-02-14 07:32:23 +01:00
parent cc26c13cac
commit aa9bd8b27e
2 changed files with 4 additions and 11 deletions

View file

@ -1,7 +1,10 @@
{ config, pkgs, lib, ... }:
let
# Universal container configuration
immichConfig = import ../../../config/immich.nix;
immichConfigJson = builtins.toJSON immichConfig;
immichConfigFile = pkgs.writeText "immich.json" immichConfigJson;
commonUID = "1000";
commonGID = "100";
systemTZ = config.time.timeZone;

View file

@ -1,16 +1,6 @@
{ config, pkgs, lib, ... }:
let
# Import Immich configuration from declarative config file
immichConfig = import ../../../config/immich.nix;
# Convert Nix configuration to JSON string
immichConfigJson = builtins.toJSON immichConfig;
# Write config file to a location accessible by the container
immichConfigFile = pkgs.writeText "immich.json" immichConfigJson;
# Universal container configuration
commonUID = "1000";
commonGID = "100";
systemTZ = config.time.timeZone;