Some checks failed
/ deploy (push) Failing after 8s
- network: add tor relay + snowflake proxy - email: regex alias for admin - search: enable some additional engines
41 lines
978 B
Nix
41 lines
978 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}: let
|
|
cfg = config.customOps;
|
|
in {
|
|
options = with lib; {
|
|
customOps = mkOption {
|
|
description = "custom options";
|
|
type = types.submodule {
|
|
options = {
|
|
owner = mkOption {
|
|
type = types.str;
|
|
default = null;
|
|
description = "machine owner username";
|
|
};
|
|
domain = mkOption {
|
|
type = types.submodule {
|
|
options = {
|
|
name = mkOption {
|
|
type = types.str;
|
|
default = null;
|
|
};
|
|
tld = mkOption {
|
|
type = types.str;
|
|
default = null;
|
|
};
|
|
fqdn = mkOption {
|
|
type = types.str;
|
|
default = "${cfg.domain.name}.${cfg.domain.tld}";
|
|
};
|
|
};
|
|
};
|
|
description = "machine domain name";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|