refactor(users/multi/whitby): use the depot's own source location attribute.
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>
This commit is contained in:
		
							parent
							
								
									1e43982c92
								
							
						
					
					
						commit
						9d6d945f52
					
				
					 2 changed files with 2 additions and 9 deletions
				
			
		|  | @ -1,6 +0,0 @@ | |||
| { config ? throw "not a readTree target", ... }: | ||||
| 
 | ||||
| let | ||||
|   depotPath = "/home/multi/depot"; | ||||
| in | ||||
|   depotPath | ||||
|  | @ -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"; | ||||
|   }; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue