mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2026-09-20 00:59:04 +05:30
refactor(services): standardize service module options
This commit is contained in:
@@ -12,11 +12,12 @@
|
||||
in
|
||||
{
|
||||
options.tnix.services.nginx = {
|
||||
enable = mkEnableOption "Enable Nginx";
|
||||
enable = mkEnableOption "Nginx";
|
||||
|
||||
domain = mkOption {
|
||||
type = types.str;
|
||||
default = "";
|
||||
description = "Base domain for the wildcard ACME certificate (disabled when empty)";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -24,8 +25,8 @@
|
||||
security = {
|
||||
acme = {
|
||||
acceptTerms = true;
|
||||
defaults.email = "${userEmail}";
|
||||
certs = {
|
||||
defaults.email = userEmail;
|
||||
certs = mkIf (cfg.domain != "") {
|
||||
"${cfg.domain}" = {
|
||||
group = "nginx";
|
||||
domain = "*.${cfg.domain}";
|
||||
|
||||
Reference in New Issue
Block a user