mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-10 09:43:30 +01:00
18 lines
279 B
Nix
18 lines
279 B
Nix
{ lib, ... }:
|
|
{
|
|
options.foo = lib.mkOption {
|
|
type = lib.types.submodule { };
|
|
default = { };
|
|
};
|
|
|
|
config = {
|
|
foo =
|
|
{ _prefix, ... }:
|
|
assert _prefix == [ "foo" ];
|
|
{
|
|
options.ok = lib.mkOption { };
|
|
config.ok = true;
|
|
};
|
|
};
|
|
}
|