about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <git@emile.space>2024-03-25 15:37:25 +0100
committerEmile <git@emile.space>2024-03-25 15:37:25 +0100
commit4671abedb76a04f83d31aceacd3a3a2764895ec6 (patch)
tree38f8f3e67bee9fed4625b20dcb8eb1e7d937a528
parentac1aececaa34759a7a58236005183edf766870df (diff)
use the lib from nixpkgs if no other one is defined
-rw-r--r--nix/lib/flake-helper.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nix/lib/flake-helper.nix b/nix/lib/flake-helper.nix
index aa1048a..6bd1c11 100644
--- a/nix/lib/flake-helper.nix
+++ b/nix/lib/flake-helper.nix
@@ -67,7 +67,7 @@ rec {
 					else ""))
 
 			# secrets (have to be added to git (crypted) #lessonslearned)
-			({ lib, ... }: let
+			({ lib ? (import <nixpkgs/lib>), ... }: let
 				secretsPath = (../hosts + "/${name}/secrets");
 			in {
 				age.secrets = lib.mapAttrs'