pgmanage: remove deprecated postage alias

The following has been removed:

* The `services.postage` alias for the `services.pgmanage` module
* The `postage` alias for the `pgmanage` package
This commit is contained in:
Bas van Dijk 2018-06-23 13:32:13 +02:00
parent 59daa4fd62
commit 68fa306be6
2 changed files with 26 additions and 43 deletions

View file

@ -41,7 +41,9 @@ let
pgmanage = "pgmanage";
pgmanageOptions = {
in {
options.services.pgmanage = {
enable = mkEnableOption "PostgreSQL Administration for the web";
package = mkOption {
@ -176,24 +178,7 @@ let
};
};
in {
options.services.pgmanage = pgmanageOptions;
# This is deprecated and should be removed for NixOS-18.03.
options.services.postage = pgmanageOptions;
config = mkMerge [
{ assertions = [
{ assertion = !config.services.postage.enable;
message =
"services.postage is deprecated in favour of pgmanage. " +
"They have the same options so just substitute postage for pgmanage." ;
}
];
}
(mkIf cfg.enable {
config = mkIf cfg.enable {
systemd.services.pgmanage = {
description = "pgmanage - PostgreSQL Administration for the web";
wants = [ "postgresql.service" ];
@ -217,6 +202,5 @@ in {
name = pgmanage;
};
};
})
];
};
}

View file

@ -219,7 +219,6 @@ mapAliases ({
pltScheme = racket; # just to be sure
polarssl = mbedtls; # added 2018-04-25
poppler_qt5 = libsForQt5.poppler; # added 2015-12-19
postage = pgmanage; # added 2017-11-03
procps = procps-ng; # added 2018-04-25
prometheus-statsd-bridge = prometheus-statsd-exporter; # added 2017-08-27
pulseaudioLight = pulseaudio; # added 2018-04-25