2017-08-20 04:20:45 -07:00
|
|
|
{ lib, pkgs, ... }:
|
2013-10-23 08:50:55 -07:00
|
|
|
|
2014-04-14 07:26:48 -07:00
|
|
|
with lib;
|
2009-09-28 11:26:13 -07:00
|
|
|
|
2015-10-14 09:05:50 -07:00
|
|
|
{
|
|
|
|
imports = [
|
2019-12-09 17:51:19 -08:00
|
|
|
/*
|
|
|
|
This file defines some renaming/removing options for backwards compatibility
|
2015-12-23 14:58:42 -08:00
|
|
|
|
2019-12-09 17:51:19 -08:00
|
|
|
It should ONLY be used when the relevant module can't define these imports
|
|
|
|
itself, such as when the module was removed completely.
|
|
|
|
See https://github.com/NixOS/nixpkgs/pull/61570 for explanation
|
|
|
|
*/
|
2015-10-14 09:05:50 -07:00
|
|
|
|
2019-12-09 17:51:19 -08:00
|
|
|
# This alias module can't be where _module.check is defined because it would
|
|
|
|
# be added to submodules as well there
|
2015-10-14 09:05:50 -07:00
|
|
|
(mkAliasOptionModule [ "environment" "checkConfigurationOptions" ] [ "_module" "check" ])
|
|
|
|
|
2019-12-09 17:51:19 -08:00
|
|
|
# Completely removed modules
|
2017-12-08 14:23:14 -08:00
|
|
|
(mkRemovedOptionModule [ "services" "firefox" "syncserver" "user" ] "")
|
|
|
|
(mkRemovedOptionModule [ "services" "firefox" "syncserver" "group" ] "")
|
2019-05-14 13:26:33 -07:00
|
|
|
(mkRemovedOptionModule [ "services" "winstone" ] "The corresponding package was removed from nixpkgs.")
|
2019-11-24 05:03:29 -08:00
|
|
|
(mkRemovedOptionModule [ "networking" "vpnc" ] "Use environment.etc.\"vpnc/service.conf\" instead.")
|
2019-10-05 23:06:25 -07:00
|
|
|
(mkRemovedOptionModule [ "environment.blcr.enable" ] "The BLCR module has been removed")
|
2019-11-24 08:33:51 -08:00
|
|
|
(mkRemovedOptionModule [ "services.beegfsEnable" ] "The BeeGFS module has been removed")
|
|
|
|
(mkRemovedOptionModule [ "services.beegfs" ] "The BeeGFS module has been removed")
|
2019-11-24 13:33:51 -08:00
|
|
|
(mkRemovedOptionModule [ "services.osquery" ] "The osquery module has been removed")
|
|
|
|
|
2019-12-09 17:51:19 -08:00
|
|
|
# Do NOT add any option renames here, see top of the file
|
|
|
|
];
|
2015-10-14 09:05:50 -07:00
|
|
|
}
|