about summary refs log tree commit diff
path: root/ops
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-05-26T10·52+0100
committerVincent Ambo <tazjin@google.com>2020-05-26T10·55+0100
commitdcb39d31983334cf59ef2ba56fbcea8ab0328114 (patch)
tree1d495be5fb7a6be88775afb7f91655c7ad8e6510 /ops
parentfe45079d19330889e02ad76d9874c04c299f4c9e (diff)
feat(ops/nixos/camden): Index nixpkgs in hound r/858
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).
Diffstat (limited to 'ops')
-rw-r--r--ops/nixos/camden/default.nix8
1 files changed, 8 insertions, 0 deletions
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)