19 lines
236 B
Nix
19 lines
236 B
Nix
{
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
host ? null,
|
|
format ? "unknown",
|
|
...
|
|
}:
|
|
|
|
let
|
|
inherit (lib) types;
|
|
inherit (lib.metacfg) mkOpt;
|
|
in
|
|
{
|
|
options.metacfg.host = {
|
|
name = mkOpt (types.nullOr types.str) host "The host name.";
|
|
};
|
|
}
|