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 57cc696e4f1c..9d8005961542 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 000000000000..20220e9f57fe
--- /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";
+  };
+}