From b35e358eb5841b62caa8408ce2dbee105bf8d9c8 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Fri, 2 Apr 2021 12:18:50 +0000 Subject: refactor(ops/nixos): migrate to depot module arg Previously the depot argument was provided as config.depot, but the "new way" of doing things (which is more like the args list provided in the rest of the depot) is to provide this as the "depot" NixOS module argument instead. Change-Id: Ib48b1c7c1bdff9c1eb0618c6cbacc22b651f5f98 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2763 Tested-by: BuildkiteCI Reviewed-by: tazjin Reviewed-by: glittershark --- ops/nixos/sourcegraph.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ops/nixos/sourcegraph.nix') diff --git a/ops/nixos/sourcegraph.nix b/ops/nixos/sourcegraph.nix index f9b2b5e19d..a24328f3e3 100644 --- a/ops/nixos/sourcegraph.nix +++ b/ops/nixos/sourcegraph.nix @@ -1,10 +1,9 @@ # Run sourcegraph, including its entire machinery, in a container. # Running it outside of a container is a futile endeavour for now. -{ config, pkgs, lib, ... }: +{ depot, config, pkgs, lib, ... }: let cfg = config.services.depot.sourcegraph; - depot = config.depot; in { options.services.depot.sourcegraph = with lib; { enable = mkEnableOption "SourceGraph code search engine"; -- cgit 1.4.1