nixos-config/variables.nix
2025-03-22 23:00:00 +01:00

24 lines
473 B
Nix

{
lib,
config,
...
}: let
inherit (lib) mkOption types;
inherit (config.liv) variables;
in {
options.liv.variables = {
primaryDomain = mkOption {
default = "liv.town";
type = types.str;
readOnly = true;
description = "My primary domain";
};
ntfyURL = mkOption {
default = "notify.${variables.liv.primaryDomain}";
type = types.str;
readOnly = true;
description = "Notification service";
};
};
}