mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
18 lines
427 B
Nix
18 lines
427 B
Nix
{ config, lib, ... }:
|
|
let
|
|
inherit (lib) mkOption types;
|
|
in
|
|
{
|
|
options.bare-submodule = mkOption {
|
|
type = types.submoduleWith {
|
|
modules = [ ];
|
|
shorthandOnlyDefinesConfig = config.shorthandOnlyDefinesConfig;
|
|
};
|
|
default = {};
|
|
};
|
|
|
|
# config-dependent options: won't recommend, but useful for making this test parameterized
|
|
options.shorthandOnlyDefinesConfig = mkOption {
|
|
default = false;
|
|
};
|
|
}
|