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:
parent
93ba78d6f4
commit
68e384a77f
2 changed files with 21 additions and 0 deletions
|
@ -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.
|
||||
#
|
||||
|
|
16
ops/nixos/modules/depot.nix
Normal file
16
ops/nixos/modules/depot.nix
Normal 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";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue