2017-08-20 14:20:45 +03:00
|
|
|
{ lib, pkgs, ... }:
|
2013-10-23 19:50:55 +04:00
|
|
|
|
2014-04-14 18:26:48 +04:00
|
|
|
with lib;
|
2009-09-28 22:26:13 +04:00
|
|
|
|
2015-10-14 19:05:50 +03:00
|
|
|
{
|
|
|
|
imports = [
|
2019-12-10 04:51:19 +03:00
|
|
|
/*
|
|
|
|
This file defines some renaming/removing options for backwards compatibility
|
2015-12-24 01:58:42 +03:00
|
|
|
|
2019-12-10 04:51:19 +03: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 19:05:50 +03:00
|
|
|
|
2019-12-10 04:51:19 +03: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 19:05:50 +03:00
|
|
|
(mkAliasOptionModule [ "environment" "checkConfigurationOptions" ] [ "_module" "check" ])
|
|
|
|
|
2019-12-10 04:51:19 +03:00
|
|
|
# Completely removed modules
|
2020-08-17 14:25:46 +03:00
|
|
|
(mkRemovedOptionModule [ "fonts" "fontconfig" "penultimate" ] "The corresponding package has removed from nixpkgs.")
|
2021-04-22 13:27:22 +03:00
|
|
|
(mkRemovedOptionModule [ "services" "quagga" ] "the corresponding package has been removed from nixpkgs")
|
2020-08-15 17:36:22 +03:00
|
|
|
(mkRemovedOptionModule [ "services" "chronos" ] "The corresponding package was removed from nixpkgs.")
|
2020-09-01 03:09:20 +03:00
|
|
|
(mkRemovedOptionModule [ "services" "deepin" ] "The corresponding packages were removed from nixpkgs.")
|
2017-12-09 01:23:14 +03:00
|
|
|
(mkRemovedOptionModule [ "services" "firefox" "syncserver" "user" ] "")
|
|
|
|
(mkRemovedOptionModule [ "services" "firefox" "syncserver" "group" ] "")
|
2020-08-15 17:43:29 +03:00
|
|
|
(mkRemovedOptionModule [ "services" "marathon" ] "The corresponding package was removed from nixpkgs.")
|
2020-08-15 17:31:18 +03:00
|
|
|
(mkRemovedOptionModule [ "services" "mesos" ] "The corresponding package was removed from nixpkgs.")
|
2019-05-14 23:26:33 +03:00
|
|
|
(mkRemovedOptionModule [ "services" "winstone" ] "The corresponding package was removed from nixpkgs.")
|
2019-11-24 16:03:29 +03:00
|
|
|
(mkRemovedOptionModule [ "networking" "vpnc" ] "Use environment.etc.\"vpnc/service.conf\" instead.")
|
2021-09-12 00:41:19 +03:00
|
|
|
(mkRemovedOptionModule [ "networking" "wicd" ] "The corresponding package was removed from nixpkgs.")
|
2020-03-11 17:59:22 +03:00
|
|
|
(mkRemovedOptionModule [ "environment" "blcr" "enable" ] "The BLCR module has been removed")
|
|
|
|
(mkRemovedOptionModule [ "services" "beegfsEnable" ] "The BeeGFS module has been removed")
|
|
|
|
(mkRemovedOptionModule [ "services" "beegfs" ] "The BeeGFS module has been removed")
|
2020-06-05 11:44:33 +03:00
|
|
|
(mkRemovedOptionModule ["services" "cgmanager" "enable"] "cgmanager was deprecated by lxc and therefore removed from nixpkgs.")
|
2020-03-11 17:59:22 +03:00
|
|
|
(mkRemovedOptionModule [ "services" "osquery" ] "The osquery module has been removed")
|
|
|
|
(mkRemovedOptionModule [ "services" "fourStore" ] "The fourStore module has been removed")
|
2020-12-11 00:19:06 +03:00
|
|
|
(mkRemovedOptionModule [ "services" "frab" ] "The frab module has been removed")
|
2020-03-11 17:59:22 +03:00
|
|
|
(mkRemovedOptionModule [ "services" "fourStoreEndpoint" ] "The fourStoreEndpoint module has been removed")
|
2020-08-15 17:19:17 +03:00
|
|
|
(mkRemovedOptionModule [ "services" "mathics" ] "The Mathics module has been removed")
|
2020-01-13 17:59:11 +03: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 03:57:10 +03: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-27 01:41:19 +03: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
|
2020-04-12 13:43:50 +03:00
|
|
|
LightDM. Please use the services.xserver.displayManager.autoLogin options
|
2020-01-27 01:41:19 +03:00
|
|
|
instead, or any other display manager in NixOS as they all support auto-login.
|
|
|
|
'')
|
2018-10-13 00:38:54 +03:00
|
|
|
(mkRemovedOptionModule [ "services" "dnscrypt-proxy" ] "Use services.dnscrypt-proxy2 instead")
|
2020-08-21 23:00:40 +03:00
|
|
|
(mkRemovedOptionModule [ "services" "meguca" ] "Use meguca has been removed from nixpkgs")
|
2020-02-11 01:10:53 +03: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.
|
|
|
|
'')
|
2020-03-06 05:01:39 +03:00
|
|
|
(mkRemovedOptionModule [ "virtualisation" "rkt" ] "The rkt module has been removed, it was archived by upstream")
|
2019-11-25 00:33:51 +03:00
|
|
|
|
2020-04-22 16:50:32 +03:00
|
|
|
(mkRemovedOptionModule ["services" "prey" ] ''
|
|
|
|
prey-bash-client is deprecated upstream
|
|
|
|
'')
|
|
|
|
|
2020-06-14 16:12:23 +03:00
|
|
|
(mkRemovedOptionModule ["hardware" "u2f" ] ''
|
|
|
|
The U2F modules module was removed, as all it did was adding the
|
|
|
|
udev rules from libu2f-host to the system. Udev gained native support
|
|
|
|
to handle FIDO security tokens, so this isn't necessary anymore.
|
|
|
|
'')
|
|
|
|
|
2020-06-22 00:55:14 +03:00
|
|
|
(mkRemovedOptionModule [ "services" "seeks" ] "")
|
2021-02-05 10:17:31 +03:00
|
|
|
(mkRemovedOptionModule [ "services" "venus" ] "The corresponding package was removed from nixpkgs.")
|
2021-02-08 01:11:08 +03:00
|
|
|
(mkRemovedOptionModule [ "services" "flashpolicyd" ] "The flashpolicyd module has been removed. Adobe Flash Player is deprecated.")
|
2020-06-22 00:55:14 +03:00
|
|
|
|
2021-02-21 15:25:56 +03:00
|
|
|
(mkRemovedOptionModule [ "security" "hideProcessInformation" ] ''
|
|
|
|
The hidepid module was removed, since the underlying machinery
|
|
|
|
is broken when using cgroups-v2.
|
|
|
|
'')
|
2021-10-10 19:19:51 +03:00
|
|
|
(mkRemovedOptionModule ["services" "wakeonlan"] "This module was removed in favor of enabling it with networking.interfaces.<name>.wakeOnLan")
|
2021-02-21 15:25:56 +03:00
|
|
|
|
2021-10-07 03:18:06 +03:00
|
|
|
(mkRemovedOptionModule [ "services" "kippo" ] "The corresponding package was removed from nixpkgs.")
|
|
|
|
|
2019-12-10 04:51:19 +03:00
|
|
|
# Do NOT add any option renames here, see top of the file
|
|
|
|
];
|
2015-10-14 19:05:50 +03:00
|
|
|
}
|