diff options
author | Vincent Ambo <mail@tazj.in> | 2020-06-13T20·39+0100 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2020-06-13T23·52+0000 |
commit | 9658e96a87178e972b656db0acf3219937013b88 (patch) | |
tree | 94c0821136dbc296d39fc03374c79924761f9626 /default.nix | |
parent | cec109807babe65dba79b9776cee2024aad349a6 (diff) |
feat: Add 'depotPath' to depot root import r/940
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 <lukegb@tvl.fyi>
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/default.nix b/default.nix index 9af5a8fe5362..054b25b9201a 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 |