mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
nixos/n8n: fix eval error with null environment variables
This commit is contained in:
parent
6a7650ebdd
commit
5ad853409c
1 changed files with 2 additions and 1 deletions
|
|
@ -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' (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue