2020-04-24 23:36:52 +00:00
|
|
|
{ lib, pkgs, ... }:
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
let
|
|
|
|
inherit (lib)
|
|
|
|
mkAliasOptionModuleMD
|
|
|
|
mkRemovedOptionModule;
|
|
|
|
in
|
2020-04-24 23:36:52 +00:00
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
/*
|
|
|
|
This file defines some renaming/removing options for backwards compatibility
|
|
|
|
|
|
|
|
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
|
|
|
|
*/
|
|
|
|
|
|
|
|
# This alias module can't be where _module.check is defined because it would
|
|
|
|
# be added to submodules as well there
|
2023-01-11 07:51:40 +00:00
|
|
|
(mkAliasOptionModuleMD [ "environment" "checkConfigurationOptions" ] [ "_module" "check" ])
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Completely removed modules
|
2022-01-19 23:45:15 +00:00
|
|
|
(mkRemovedOptionModule [ "environment" "blcr" "enable" ] "The BLCR module has been removed")
|
2020-08-20 17:08:02 +00:00
|
|
|
(mkRemovedOptionModule [ "fonts" "fontconfig" "penultimate" ] "The corresponding package has removed from nixpkgs.")
|
2022-01-19 23:45:15 +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.
|
|
|
|
'')
|
|
|
|
(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.
|
|
|
|
'')
|
2022-08-12 12:06:08 +00:00
|
|
|
(mkRemovedOptionModule [ "hardware" "xow" ] ''
|
|
|
|
The xow package was removed from nixpkgs. Upstream has deprecated
|
|
|
|
the project and users are urged to switch to xone.
|
|
|
|
'')
|
2022-01-19 23:45:15 +00:00
|
|
|
(mkRemovedOptionModule [ "networking" "vpnc" ] "Use environment.etc.\"vpnc/service.conf\" instead.")
|
|
|
|
(mkRemovedOptionModule [ "networking" "wicd" ] "The corresponding package was removed from nixpkgs.")
|
2023-02-02 18:25:31 +00:00
|
|
|
(mkRemovedOptionModule [ "programs" "gnome-documents" ] "The corresponding package was removed from nixpkgs.")
|
2022-02-10 20:34:41 +00:00
|
|
|
(mkRemovedOptionModule [ "programs" "tilp2" ] "The corresponding package was removed from nixpkgs.")
|
2022-01-19 23:45:15 +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"))
|
|
|
|
(mkRemovedOptionModule [ "security" "hideProcessInformation" ] ''
|
|
|
|
The hidepid module was removed, since the underlying machinery
|
|
|
|
is broken when using cgroups-v2.
|
|
|
|
'')
|
2023-03-24 00:07:29 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "baget" "enable" ] "The baget module was removed due to the upstream package being unmaintained.")
|
2022-01-19 23:45:15 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "beegfs" ] "The BeeGFS module has been removed")
|
|
|
|
(mkRemovedOptionModule [ "services" "beegfsEnable" ] "The BeeGFS module has been removed")
|
|
|
|
(mkRemovedOptionModule [ "services" "cgmanager" "enable"] "cgmanager was deprecated by lxc and therefore removed from nixpkgs.")
|
2020-08-20 17:08:02 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "chronos" ] "The corresponding package was removed from nixpkgs.")
|
2022-01-03 16:56:52 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "couchpotato" ] "The corresponding package was removed from nixpkgs.")
|
2022-09-14 18:05:37 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "dd-agent" ] "dd-agent was removed from nixpkgs in favor of the newer datadog-agent.")
|
2022-01-19 23:45:15 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "dnscrypt-proxy" ] "Use services.dnscrypt-proxy2 instead")
|
2023-07-15 17:15:38 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "exhibitor" ] "The corresponding package was removed from nixpkgs.")
|
2022-01-03 16:56:52 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "firefox" "syncserver" ] "The corresponding package was removed from nixpkgs.")
|
2022-01-19 23:45:15 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "flashpolicyd" ] "The flashpolicyd module has been removed. Adobe Flash Player is deprecated.")
|
2020-04-24 23:36:52 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "fourStore" ] "The fourStore module has been removed")
|
|
|
|
(mkRemovedOptionModule [ "services" "fourStoreEndpoint" ] "The fourStoreEndpoint module has been removed")
|
2022-03-05 16:20:37 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "fprot" ] "The corresponding package was removed from nixpkgs.")
|
2022-01-19 23:45:15 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "frab" ] "The frab module has been removed")
|
2024-04-21 15:54:59 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "homeassistant-satellite"] "The `services.homeassistant-satellite` module has been replaced by `services.wyoming-satellite`.")
|
2023-04-29 16:46:19 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "ihatemoney" ] "The ihatemoney module has been removed for lack of downstream maintainer")
|
2022-01-19 23:45:15 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "kippo" ] "The corresponding package was removed from nixpkgs.")
|
|
|
|
(mkRemovedOptionModule [ "services" "mailpile" ] "The corresponding package was removed from nixpkgs.")
|
|
|
|
(mkRemovedOptionModule [ "services" "marathon" ] "The corresponding package was removed from nixpkgs.")
|
2020-08-20 17:08:02 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "mathics" ] "The Mathics module has been removed")
|
2022-01-19 23:45:15 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "meguca" ] "Use meguca has been removed from nixpkgs")
|
|
|
|
(mkRemovedOptionModule [ "services" "mesos" ] "The corresponding package was removed from nixpkgs.")
|
|
|
|
(mkRemovedOptionModule [ "services" "moinmoin" ] "The corresponding package was removed from nixpkgs.")
|
2022-01-03 16:56:52 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "mwlib" ] "The corresponding package was removed from nixpkgs.")
|
2022-02-10 20:34:41 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "pantheon" "files" ] ''
|
|
|
|
This module was removed, please add pkgs.pantheon.elementary-files to environment.systemPackages directly.
|
|
|
|
'')
|
2022-01-19 23:45:15 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "prey" ] ''
|
|
|
|
prey-bash-client is deprecated upstream
|
2020-04-24 23:36:52 +00:00
|
|
|
'')
|
2022-01-19 23:45:15 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "quagga" ] "the corresponding package has been removed from nixpkgs")
|
2022-07-14 12:49:19 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "railcar" ] "the corresponding package has been removed from nixpkgs")
|
2022-01-19 23:45:15 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "seeks" ] "")
|
2022-04-27 09:35:20 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "ssmtp" ] ''
|
|
|
|
The ssmtp package and the corresponding module have been removed due to
|
|
|
|
the program being unmaintained. The options `programs.msmtp.*` can be
|
|
|
|
used instead.
|
|
|
|
'')
|
2022-01-19 23:45:15 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "venus" ] "The corresponding package was removed from nixpkgs.")
|
|
|
|
(mkRemovedOptionModule [ "services" "wakeonlan"] "This module was removed in favor of enabling it with networking.interfaces.<name>.wakeOnLan")
|
|
|
|
(mkRemovedOptionModule [ "services" "winstone" ] "The corresponding package was removed from nixpkgs.")
|
2020-04-24 23:36:52 +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
|
2024-04-21 15:54:59 +00:00
|
|
|
LightDM. Please use the services.displayManager.autoLogin options
|
2020-04-24 23:36:52 +00:00
|
|
|
instead, or any other display manager in NixOS as they all support auto-login.
|
|
|
|
'')
|
2022-01-19 23:45:15 +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-04-24 23:36:52 +00:00
|
|
|
'')
|
2020-05-29 06:06:01 +00:00
|
|
|
(mkRemovedOptionModule [ "virtualisation" "rkt" ] "The rkt module has been removed, it was archived by upstream")
|
2022-01-27 00:19:43 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "racoon" ] ''
|
|
|
|
The racoon module has been removed, because the software project was abandoned upstream.
|
|
|
|
'')
|
2022-02-10 20:34:41 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "shellinabox" ] "The corresponding package was removed from nixpkgs.")
|
2022-02-20 05:27:41 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "gogoclient" ] "The corresponding package was removed from nixpkgs.")
|
2022-03-05 16:20:37 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "virtuoso" ] "The corresponding package was removed from nixpkgs.")
|
2022-04-03 18:54:34 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "openfire" ] "The corresponding package was removed from nixpkgs.")
|
2022-06-26 10:26:21 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "riak" ] "The corresponding package was removed from nixpkgs.")
|
2022-07-14 12:49:19 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "cryptpad" ] "The corresponding package was removed from nixpkgs.")
|
2023-04-29 16:46:19 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "rtsp-simple-server" ] "Package has been completely rebranded by upstream as mediamtx, and thus the service and the package were renamed in NixOS as well.")
|
2023-11-16 04:20:00 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "prayer" ] "The corresponding package was removed from nixpkgs.")
|
2024-02-29 20:09:43 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "restya-board" ] "The corresponding package was removed from nixpkgs.")
|
2022-02-20 05:27:41 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
(mkRemovedOptionModule [ "i18n" "inputMethod" "fcitx" ] "The fcitx module has been removed. Please use fcitx5 instead")
|
2023-08-04 22:07:22 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "dhcpd4" ] ''
|
|
|
|
The dhcpd4 module has been removed because ISC DHCP reached its end of life.
|
|
|
|
See https://www.isc.org/blogs/isc-dhcp-eol/ for details.
|
|
|
|
Please switch to a different implementation like kea or dnsmasq.
|
|
|
|
'')
|
|
|
|
(mkRemovedOptionModule [ "services" "dhcpd6" ] ''
|
|
|
|
The dhcpd6 module has been removed because ISC DHCP reached its end of life.
|
|
|
|
See https://www.isc.org/blogs/isc-dhcp-eol/ for details.
|
|
|
|
Please switch to a different implementation like kea or dnsmasq.
|
|
|
|
'')
|
2023-10-09 19:29:22 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "tedicross" ] ''
|
|
|
|
The corresponding package was broken and removed from nixpkgs.
|
|
|
|
'')
|
2023-03-27 19:17:25 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# Do NOT add any option renames here, see top of the file
|
|
|
|
];
|
|
|
|
}
|