mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 03:30:45 +00:00
postgrey: backwards compatability
This commit is contained in:
parent
65f0ddbd53
commit
9383b2cf34
|
@ -153,6 +153,17 @@ with lib;
|
||||||
# alsa
|
# alsa
|
||||||
(mkRenamedOptionModule [ "sound" "enableMediaKeys" ] [ "sound" "mediaKeys" "enable" ])
|
(mkRenamedOptionModule [ "sound" "enableMediaKeys" ] [ "sound" "mediaKeys" "enable" ])
|
||||||
|
|
||||||
|
# postgrey
|
||||||
|
(mkMergedOptionModule [ [ "services" "postgrey" "inetAddr" ] [ "services" "postgrey" "inetPort" ] ] [ "services" "postgrey" "socket" ] (config: let
|
||||||
|
value = p: getAttrFromPath p config;
|
||||||
|
inetAddr = [ "services" "postgrey" "inetAddr" ];
|
||||||
|
inetPort = [ "services" "postgrey" "inetPort" ];
|
||||||
|
in
|
||||||
|
if value inetAddr == null
|
||||||
|
then { path = "/var/run/postgrey.sock"; }
|
||||||
|
else { addr = value inetAddr; port = value inetPort; }
|
||||||
|
))
|
||||||
|
|
||||||
# Options that are obsolete and have no replacement.
|
# Options that are obsolete and have no replacement.
|
||||||
(mkRemovedOptionModule [ "boot" "initrd" "luks" "enable" ] "")
|
(mkRemovedOptionModule [ "boot" "initrd" "luks" "enable" ] "")
|
||||||
(mkRemovedOptionModule [ "programs" "bash" "enable" ] "")
|
(mkRemovedOptionModule [ "programs" "bash" "enable" ] "")
|
||||||
|
|
Loading…
Reference in a new issue