From ba9fb4e1123883ffc2410d11146cb63a5aa7841d Mon Sep 17 00:00:00 2001 From: multi Date: Sun, 22 Nov 2020 19:59:43 +0000 Subject: fix(users/multi/home): use local depot checkout. This reverts 1478317d149539d74fa4bad8414658fb7119ea07. Using depot.depotPath in my home-manager configuration results in my NIX_PATH and home-manager config file path being pointed at a copy of the depot in the nix store, which makes building from my local depot checkout a bit cumbersome. Change-Id: Ib687d3e8147cb32df071d3c19a5300294ea62c0c Reviewed-on: https://cl.tvl.fyi/c/depot/+/2130 Tested-by: BuildkiteCI Reviewed-by: multi --- users/multi/home/configs/whitby.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'users/multi/home') diff --git a/users/multi/home/configs/whitby.nix b/users/multi/home/configs/whitby.nix index bd647cf604b5..90ed1e470fc4 100644 --- a/users/multi/home/configs/whitby.nix +++ b/users/multi/home/configs/whitby.nix @@ -2,6 +2,10 @@ let nixpkgs = import pkgs.nixpkgsSrc {}; + + # use the depot checkout in my home directory, to make hacking around easier, + # instead of the depot checkout sitting in the nix stores + depotPath = "/home/multi/depot"; in { @@ -43,8 +47,8 @@ in home.sessionVariables = { NIX_PATH = "nixpkgs=${pkgs.nixpkgsSrc}:" + - "depot=${depot.depotPath}"; - HOME_MANAGER_CONFIG = "${depot.depotPath}/users/multi/home/home-manager.nix"; + "depot=${depotPath}"; + HOME_MANAGER_CONFIG = "${depotPath}/users/multi/home/home-manager.nix"; EDITOR = "vim"; }; -- cgit 1.4.1