From a8dd2078371a02a71603f731117117ef635062a1 Mon Sep 17 00:00:00 2001 From: cinereal Date: Sat, 21 Jun 2025 11:13:13 +0200 Subject: [PATCH] provide a default value for lib's `nix_templater` parameter to facilitate importing without flakes --- lib.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib.nix b/lib.nix index 16b1791..7729723 100644 --- a/lib.nix +++ b/lib.nix @@ -1,4 +1,7 @@ -{ pkgs, nix_templater }: +{ + pkgs, + nix_templater ? pkgs.callPackage ./pkgs/nix_templater { }, +}: { # placeholder to be substituted with the content of a secret file fileContents = file: {