Merge pull request #7032 from flosse/change-option-names
nixos: prosody service - rename 'enabled' to 'enable'
This commit is contained in:
commit
c265aafb55
|
@ -122,6 +122,9 @@ in zipModules ([]
|
||||||
++ deprecated [ "kde" "extraPackages" ] [ "environment" "systemPackages" ]
|
++ deprecated [ "kde" "extraPackages" ] [ "environment" "systemPackages" ]
|
||||||
++ obsolete [ "environment" "kdePackages" ] [ "environment" "systemPackages" ]
|
++ obsolete [ "environment" "kdePackages" ] [ "environment" "systemPackages" ]
|
||||||
|
|
||||||
|
# Prosody
|
||||||
|
++ deprecated [ "services" "prosody" "virtualHosts" "enabled" ] [ "services" "prosody" "virtualHosts" "enable" ]
|
||||||
|
|
||||||
# Multiple efi bootloaders now
|
# Multiple efi bootloaders now
|
||||||
++ obsolete [ "boot" "loader" "efi" "efibootmgr" "enable" ] [ "boot" "loader" "efi" "canTouchEfiVariables" ]
|
++ obsolete [ "boot" "loader" "efi" "efibootmgr" "enable" ] [ "boot" "loader" "efi" "canTouchEfiVariables" ]
|
||||||
|
|
||||||
|
|
|
@ -113,7 +113,7 @@ let
|
||||||
description = "Domain name";
|
description = "Domain name";
|
||||||
};
|
};
|
||||||
|
|
||||||
enabled = mkOption {
|
enable = mkOption {
|
||||||
default = false;
|
default = false;
|
||||||
description = "Whether to enable the virtual host";
|
description = "Whether to enable the virtual host";
|
||||||
};
|
};
|
||||||
|
@ -169,14 +169,14 @@ in
|
||||||
example = {
|
example = {
|
||||||
myhost = {
|
myhost = {
|
||||||
domain = "my-xmpp-example-host.org";
|
domain = "my-xmpp-example-host.org";
|
||||||
enabled = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
default = {
|
default = {
|
||||||
localhost = {
|
localhost = {
|
||||||
domain = "localhost";
|
domain = "localhost";
|
||||||
enabled = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -214,7 +214,6 @@ in
|
||||||
|
|
||||||
pidfile = "/var/lib/prosody/prosody.pid"
|
pidfile = "/var/lib/prosody/prosody.pid"
|
||||||
|
|
||||||
|
|
||||||
log = "*syslog"
|
log = "*syslog"
|
||||||
|
|
||||||
data_path = "/var/lib/prosody"
|
data_path = "/var/lib/prosody"
|
||||||
|
@ -244,7 +243,7 @@ in
|
||||||
|
|
||||||
${ lib.concatStringsSep "\n" (lib.mapAttrsToList (n: v: ''
|
${ lib.concatStringsSep "\n" (lib.mapAttrsToList (n: v: ''
|
||||||
VirtualHost "${v.domain}"
|
VirtualHost "${v.domain}"
|
||||||
enabled = ${if v.enabled then "true" else "false"};
|
enabled = ${if v.enable then "true" else "false"};
|
||||||
${ optionalString (v.ssl != null) (createSSLOptsStr v.ssl) }
|
${ optionalString (v.ssl != null) (createSSLOptsStr v.ssl) }
|
||||||
${ v.extraConfig }
|
${ v.extraConfig }
|
||||||
'') cfg.virtualHosts) }
|
'') cfg.virtualHosts) }
|
||||||
|
|
Loading…
Reference in a new issue