diff options
author | multi <depot@in-addr.xyz> | 2020-11-22T15·16+0000 |
---|---|---|
committer | multi <depot@in-addr.xyz> | 2020-11-22T19·48+0000 |
commit | 9d6d945f524c06836c1292b3f9ab862521e32b1a (patch) | |
tree | 49a4d4e9ed016d8430ae9232ce73d0e107072fb0 /users/multi/whitby | |
parent | 1e43982c925a5845cef1cf996aef6301e8b37493 (diff) |
refactor(users/multi/whitby): use the depot's own source location attribute. r/1897
The depot knows where it is, not because it knows where it isn't, but because it does an "import ./." at the top level and then makes this path value available in the attrset passed to the rest of the tree. My home-manager config on whitby previously involved manual specification of the depot checkout location on whitby, however this isn't necessary when the depot can already magically tell us where it is. Change-Id: I68577c8ef2cda6ba5bc46cf8f4821aac021c8066 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2122 Tested-by: BuildkiteCI Reviewed-by: multi <depot@in-addr.xyz>
Diffstat (limited to 'users/multi/whitby')
-rw-r--r-- | users/multi/whitby/depot.nix | 6 | ||||
-rw-r--r-- | users/multi/whitby/home-manager.nix | 5 |
2 files changed, 2 insertions, 9 deletions
diff --git a/users/multi/whitby/depot.nix b/users/multi/whitby/depot.nix deleted file mode 100644 index c0bda4d98b0d..000000000000 --- a/users/multi/whitby/depot.nix +++ /dev/null @@ -1,6 +0,0 @@ -{ config ? throw "not a readTree target", ... }: - -let - depotPath = "/home/multi/depot"; -in - depotPath diff --git a/users/multi/whitby/home-manager.nix b/users/multi/whitby/home-manager.nix index 18deeb4b5aa0..c034d83f5123 100644 --- a/users/multi/whitby/home-manager.nix +++ b/users/multi/whitby/home-manager.nix @@ -4,7 +4,6 @@ let depot = import <depot> {}; pkgs = import <nixpkgs> {}; - depotPath = depot.users.multi.whitby.depot; in { @@ -46,8 +45,8 @@ in home.sessionVariables = { NIX_PATH = "nixpkgs=${depot.third_party.nixpkgsSrc}:" + - "depot=${depotPath}"; - HOME_MANAGER_CONFIG = "${depotPath}/users/multi/whitby/home-manager.nix"; + "depot=${depot.depotPath}"; + HOME_MANAGER_CONFIG = "${depot.depotPath}/users/multi/whitby/home-manager.nix"; EDITOR = "vim"; }; |