2023-08-31 01:55:45 +03:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
2023-08-23 21:42:51 +03:00
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./time-travel.nix
|
2023-08-31 01:55:45 +03:00
|
|
|
./hours.nix
|
|
|
|
./meta.nix
|
|
|
|
./nginx.nix
|
|
|
|
./identity.nix
|
2024-07-05 23:49:10 +03:00
|
|
|
./catalog.nix
|
2023-08-23 21:42:51 +03:00
|
|
|
];
|
2023-08-31 01:55:45 +03:00
|
|
|
|
|
|
|
options.lib = lib.mkOption {
|
|
|
|
default = {};
|
|
|
|
type = with lib.types; submodule ({ extendModules, ... }: {
|
|
|
|
freeformType = let
|
|
|
|
t = either (lazyAttrsOf t) raw;
|
|
|
|
in t;
|
|
|
|
config.override = conf: let
|
|
|
|
overridden = extendModules {
|
|
|
|
modules = [ conf ];
|
|
|
|
};
|
|
|
|
in overridden.config;
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
2024-07-05 00:46:20 +03:00
|
|
|
config = {
|
|
|
|
_module.args.depot = config;
|
|
|
|
flake = { inherit (config) lib; };
|
|
|
|
};
|
2023-08-23 21:42:51 +03:00
|
|
|
}
|