mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-16 07:00:43 +03:00
18 lines
329 B
Nix
18 lines
329 B
Nix
{ lib, ... }:
|
|
let
|
|
myconf = lib.evalModules { modules = [ { } ]; };
|
|
in
|
|
{
|
|
options.foo = lib.mkOption {
|
|
type = lib.types.submodule { };
|
|
default = { };
|
|
};
|
|
config.foo =
|
|
{ ... }:
|
|
{
|
|
imports = [
|
|
# error, like `import-configuration.nix`, but in a submodule this time
|
|
myconf
|
|
];
|
|
};
|
|
}
|