adonis/config/options.nix
toufic ar 0fefd6137a
Some checks failed
/ deploy (push) Failing after 8s
config changes
- network: add tor relay + snowflake proxy
- email: regex alias for admin
- search: enable some additional engines
2026-01-29 21:45:04 +02:00

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";
};
};
};
};
};
}