nixos/n8n: fix eval error with null environment variables

This commit is contained in:
Gutyina Gergő 2026-02-25 20:42:56 +01:00
commit 5ad853409c
No known key found for this signature in database

View file

@ -10,8 +10,9 @@ let
# Partition environment variables into regular and file-based (_FILE suffix)
envVarToCredName = varName: lib.toLower varName;
partitionEnv =
env:
allEnv:
let
env = lib.filterAttrs (_name: value: value != null) allEnv;
regular = lib.filterAttrs (name: _value: !(lib.hasSuffix "_FILE" name)) env;
fileBased = lib.filterAttrs (name: _value: lib.hasSuffix "_FILE" name) env;
fileBasedTransformed = lib.mapAttrs' (