From e5f3ffd288a472861221265e0649d091f6322a52 Mon Sep 17 00:00:00 2001 From: oddlama Date: Thu, 18 May 2023 11:48:09 +0200 Subject: [PATCH] fix: reference extra-builtins.nix with access to relative files --- hosts/common/dev/nix.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hosts/common/dev/nix.nix b/hosts/common/dev/nix.nix index 4798628..58002c7 100644 --- a/hosts/common/dev/nix.nix +++ b/hosts/common/dev/nix.nix @@ -1,6 +1,8 @@ {pkgs, ...}: { + # Make sure not to reference the extra-builtins file directly but + # at least via its parent folder so it can access relative files. nix.extraOptions = '' plugin-files = ${pkgs.nix-plugins}/lib/nix/plugins - extra-builtins-file = ${../../../nix/extra-builtins.nix} + extra-builtins-file = ${../../../nix}/extra-builtins.nix ''; }