From f520bd40cab9bae4f8fa26fe36365a7bf9bccd5a Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 12 Apr 2021 22:26:55 +0200 Subject: refactor: Replace 'depotPath' with 'depot.path' Instead of having two ways of accessing the path to the depot (one of which was stuttering, depot.depotPath) we settle on only one: depot.path. This was mostly used for NixOS module imports. Co-Authored-By: Florian Klink Change-Id: I2c0db23383fc34f6ca76baaad4cc4af2d9dfae15 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2962 Tested-by: BuildkiteCI Reviewed-by: grfn Reviewed-by: sterni --- ops/nixos.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ops/nixos.nix') diff --git a/ops/nixos.nix b/ops/nixos.nix index 465a2eed31..6a583c53db 100644 --- a/ops/nixos.nix +++ b/ops/nixos.nix @@ -33,7 +33,7 @@ in rec { fi echo "Rebuilding NixOS for $HOSTNAME" - system=$(nix-build -E "((import ${toString depot.depotPath} {}).ops.nixos.findSystem \"$HOSTNAME\").system" --no-out-link --show-trace) + system=$(nix-build -E "((import ${toString depot.path} {}).ops.nixos.findSystem \"$HOSTNAME\").system" --no-out-link --show-trace) nix-env -p /nix/var/nix/profiles/system --set $system $system/bin/switch-to-configuration switch -- cgit 1.4.1