nixos/n8n: fix eval error with null environment variables

This commit is contained in:
Gutyina Gergő
2026-02-25 20:49:49 +01:00
parent 6a7650ebdd
commit 5ad853409c
+2 -1
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' (