tvl-depot/ops/nixos/modules/depot.nix
Vincent Ambo 68e384a77f 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.
2020-05-26 00:17:55 +00:00

16 lines
332 B
Nix

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