mynixos-extra-modules/modules/globals.nix

18 lines
332 B
Nix

{ lib, options, ... }:
let
inherit (lib) mkOption types;
in
{
options = {
globals = mkOption {
default = { };
type = types.submodule { };
};
_globalsDefs = mkOption {
type = types.unspecified;
default = options.globals.definitions;
readOnly = true;
internal = true;
};
};
}