depot/lib/part.nix

28 lines
517 B
Nix
Raw Normal View History

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
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;
});
};
config._module.args.depot = config;
2023-08-23 21:42:51 +03:00
}