ffeat(ops/nixos): Add a dummy to make depot available in modules

Because modules are not called via the default depot setup (for now
...), this introduces a dummy module that stores the depot tree itself
in the module configurations.

This makes it possible to write modules that use packages from the
depot.
This commit is contained in:
Vincent Ambo 2020-05-26 00:17:55 +00:00
parent 93ba78d6f4
commit 68e384a77f
2 changed files with 21 additions and 0 deletions

View file

@ -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";
};
}