2017-08-20 11:20:45 +00:00
|
|
|
{ lib, pkgs, ... }:
|
2013-10-23 15:50:55 +00:00
|
|
|
|
2014-04-14 14:26:48 +00:00
|
|
|
with lib;
|
2009-09-28 18:26:13 +00:00
|
|
|
|
2015-10-14 16:05:50 +00:00
|
|
|
{
|
|
|
|
imports = [
|
2019-12-10 01:51:19 +00:00
|
|
|
/*
|
|
|
|
This file defines some renaming/removing options for backwards compatibility
|
2015-12-23 22:58:42 +00:00
|
|
|
|
2019-12-10 01:51:19 +00: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 16:05:50 +00:00
|
|
|
|
2019-12-10 01:51:19 +00: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 16:05:50 +00:00
|
|
|
(mkAliasOptionModule [ "environment" "checkConfigurationOptions" ] [ "_module" "check" ])
|
|
|
|
|
2019-12-10 01:51:19 +00:00
|
|
|
# Completely removed modules
|
2017-12-08 22:23:14 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "firefox" "syncserver" "user" ] "")
|
|
|
|
(mkRemovedOptionModule [ "services" "firefox" "syncserver" "group" ] "")
|
2019-05-14 20:26:33 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "winstone" ] "The corresponding package was removed from nixpkgs.")
|
2019-11-24 13:03:29 +00:00
|
|
|
(mkRemovedOptionModule [ "networking" "vpnc" ] "Use environment.etc.\"vpnc/service.conf\" instead.")
|
2019-10-06 06:06:25 +00:00
|
|
|
(mkRemovedOptionModule [ "environment.blcr.enable" ] "The BLCR module has been removed")
|
2019-11-24 16:33:51 +00:00
|
|
|
(mkRemovedOptionModule [ "services.beegfsEnable" ] "The BeeGFS module has been removed")
|
|
|
|
(mkRemovedOptionModule [ "services.beegfs" ] "The BeeGFS module has been removed")
|
2019-11-24 21:33:51 +00:00
|
|
|
(mkRemovedOptionModule [ "services.osquery" ] "The osquery module has been removed")
|
2019-12-21 17:46:15 +00:00
|
|
|
(mkRemovedOptionModule [ "services.fourStore" ] "The fourStore module has been removed")
|
|
|
|
(mkRemovedOptionModule [ "services.fourStoreEndpoint" ] "The fourStoreEndpoint module has been removed")
|
2020-01-13 14:59:11 +00:00
|
|
|
(mkRemovedOptionModule [ "programs" "way-cooler" ] ("way-cooler is abandoned by its author: " +
|
|
|
|
"https://way-cooler.org/blog/2020/01/09/way-cooler-post-mortem.html"))
|
2020-01-19 00:57:10 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "xserver" "multitouch" ] ''
|
|
|
|
services.xserver.multitouch (which uses xf86_input_mtrack) has been removed
|
|
|
|
as the underlying package isn't being maintained. Working alternatives are
|
|
|
|
libinput and synaptics.
|
|
|
|
'')
|
2020-01-26 22:41:19 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "xserver" "displayManager" "auto" ] ''
|
|
|
|
The services.xserver.displayManager.auto module has been removed
|
|
|
|
because it was only intended for use in internal NixOS tests, and gave the
|
|
|
|
false impression of it being a special display manager when it's actually
|
|
|
|
LightDM. Please use the services.xserver.displayManager.lightdm.autoLogin options
|
|
|
|
instead, or any other display manager in NixOS as they all support auto-login.
|
|
|
|
'')
|
2018-10-12 21:38:54 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "dnscrypt-proxy" ] "Use services.dnscrypt-proxy2 instead")
|
2020-02-10 22:10:53 +00:00
|
|
|
(mkRemovedOptionModule ["hardware" "brightnessctl" ] ''
|
|
|
|
The brightnessctl module was removed because newer versions of
|
|
|
|
brightnessctl don't require the udev rules anymore (they can use the
|
|
|
|
systemd-logind API). Instead of using the module you can now
|
|
|
|
simply add the brightnessctl package to environment.systemPackages.
|
|
|
|
'')
|
2019-11-24 21:33:51 +00:00
|
|
|
|
2019-12-10 01:51:19 +00:00
|
|
|
# Do NOT add any option renames here, see top of the file
|
|
|
|
];
|
2015-10-14 16:05:50 +00:00
|
|
|
}
|