From 1975ee055424230ff968c449ca5ab2b5d1cf06ee Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sun, 9 Jul 2023 12:02:03 +0800 Subject: [PATCH] lib/private: add `isInternal` --- lib/private.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/private.nix b/lib/private.nix index e8605daa..f54b16c0 100644 --- a/lib/private.nix +++ b/lib/private.nix @@ -44,6 +44,8 @@ rec { ({ inherit key; } // settings)) secrets; + isInternal = config: config ? _isInsideFds && config._isInsideFds; + getUsers = type: users: let userModules = lib.filesToAttr ../users/${type};