nixos-config/variables.nix

40 lines
819 B
Nix
Raw Permalink Normal View History

2025-03-22 22:45:36 +01:00
{
lib,
config,
...
2025-04-24 15:02:38 +02:00
}:
let
2025-03-22 22:45:36 +01:00
inherit (lib) mkOption types;
inherit (config.liv) variables;
2025-04-24 15:02:38 +02:00
in
{
2025-03-22 22:45:36 +01:00
options.liv.variables = {
primaryDomain = mkOption {
default = "liv.town";
type = types.str;
readOnly = true;
description = "My primary domain";
};
2025-03-22 23:00:00 +01:00
ntfyURL = mkOption {
default = "notify.${variables.liv.primaryDomain}";
type = types.str;
readOnly = true;
description = "Notification service";
};
2025-04-24 15:02:38 +02:00
email = mkOption {
default = "liv@liv.town";
type = types.str;
readOnly = true;
description = "My primary email";
};
2025-07-27 15:29:29 +02:00
senderEmail = mkOption {
default = "notifications@liv.town";
type = types.str;
readOnly = true;
description = "Emailaddress used to send mails from the system";
};
2025-03-22 22:45:36 +01:00
};
}