From 9658e96a87178e972b656db0acf3219937013b88 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 13 Jun 2020 21:39:48 +0100 Subject: [PATCH] feat: Add 'depotPath' to depot root import This is useful for things like including NixOS modules in configurations without creating long and error-prone relative paths. Change-Id: I4a5ebb1a0e5adf90b6bc50e884db453e12461001 Reviewed-on: https://cl.tvl.fyi/c/depot/+/243 Reviewed-by: lukegb --- default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/default.nix b/default.nix index 9af5a8fe5..054b25b92 100644 --- a/default.nix +++ b/default.nix @@ -54,6 +54,10 @@ in fix(self: { __functor = x: (readTree' x.config); config = self.config; }; + + # Make the path to the depot available for things that might need it + # (e.g. NixOS module inclusions) + depotPath = ./.; } # Add local packages as structured by readTree