From dcb39d31983334cf59ef2ba56fbcea8ab0328114 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 26 May 2020 11:52:42 +0100 Subject: feat(ops/nixos/camden): Index nixpkgs in hound There is a local nixpkgs clone at /var/git/nixpkgs which must be manually set to have 'master' point at the desired ref (hound only supports master). --- ops/nixos/camden/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ops/nixos/camden/default.nix') diff --git a/ops/nixos/camden/default.nix b/ops/nixos/camden/default.nix index 1039cb2a212b..c8399376c2ef 100644 --- a/ops/nixos/camden/default.nix +++ b/ops/nixos/camden/default.nix @@ -253,6 +253,14 @@ in lib.fix(self: { anchor = "#n{line}"; }; }; + repos.nixpkgs = { + url = "file:///var/git/nixpkgs"; + vcs = "git"; + url-pattern = { + base-url = "https://github.com/NixOS/nixpkgs/blob/${pkgs.nixpkgsCommit}/{path}{anchor}"; + anchor = "#L{line}"; + }; + }; }; # serve my website(s) -- cgit 1.4.1