about summary refs log tree commit diff
path: root/ops
diff options
context:
space:
mode:
Diffstat (limited to 'ops')
-rw-r--r--ops/nixos/camden/default.nix5
-rw-r--r--ops/nixos/modules/depot.nix16
2 files changed, 21 insertions, 0 deletions
diff --git a/ops/nixos/camden/default.nix b/ops/nixos/camden/default.nix
index 57cc696e4f..9d80059615 100644
--- a/ops/nixos/camden/default.nix
+++ b/ops/nixos/camden/default.nix
@@ -6,6 +6,11 @@ config: let
     config.allowUnfree = true;
   };
 in lib.fix(self: {
+  imports = [
+    ../modules/depot.nix
+  ];
+  depot = depot;
+
   # camden is intended to boot unattended, despite having an encrypted
   # root partition.
   #
diff --git a/ops/nixos/modules/depot.nix b/ops/nixos/modules/depot.nix
new file mode 100644
index 0000000000..20220e9f57
--- /dev/null
+++ b/ops/nixos/modules/depot.nix
@@ -0,0 +1,16 @@
+# This module makes it possible to get at the depot from "proper"
+# NixOS modules.
+#
+# It needs to be included and configured in each system like this:
+#
+# {
+#   imports = [ ../modules/depot.nix ];
+#   inherit depot;
+# }
+{ lib, ... }:
+
+{
+  options.depot = with lib; mkOption {
+    description = "tazjin's imported monorepo";
+  };
+}