2024-07-10 18:40:06 +02:00
|
|
|
{ lib, ... }:
|
2013-10-23 17:50:55 +02:00
|
|
|
|
2023-04-30 03:10:50 +02:00
|
|
|
let
|
|
|
|
inherit (lib)
|
|
|
|
mkAliasOptionModuleMD
|
|
|
|
mkRemovedOptionModule;
|
|
|
|
in
|
2015-10-14 18:05:50 +02:00
|
|
|
{
|
|
|
|
imports = [
|
2019-12-10 02:51:19 +01:00
|
|
|
/*
|
|
|
|
This file defines some renaming/removing options for backwards compatibility
|
2015-12-23 23:58:42 +01:00
|
|
|
|
2019-12-10 02:51:19 +01: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 18:05:50 +02:00
|
|
|
|
2019-12-10 02:51:19 +01:00
|
|
|
# This alias module can't be where _module.check is defined because it would
|
|
|
|
# be added to submodules as well there
|
2022-12-30 20:43:53 +01:00
|
|
|
(mkAliasOptionModuleMD [ "environment" "checkConfigurationOptions" ] [ "_module" "check" ])
|
2015-10-14 18:05:50 +02:00
|
|
|
|
2019-12-10 02:51:19 +01:00
|
|
|
# Completely removed modules
|
2019-10-06 08:06:25 +02:00
|
|
|
(mkRemovedOptionModule [ "environment" "blcr" "enable" ] "The BLCR module has been removed")
|
2020-08-17 13:25:46 +02:00
|
|
|
(mkRemovedOptionModule [ "fonts" "fontconfig" "penultimate" ] "The corresponding package has removed from nixpkgs.")
|
2020-02-10 23:10:53 +01:00
|
|
|
(mkRemovedOptionModule [ "hardware" "brightnessctl" ] ''
|
2021-04-22 12:27:22 +02:00
|
|
|
The brightnessctl module was removed because newer versions of
|
|
|
|
brightnessctl don't require the udev rules anymore (they can use the
|
2020-02-10 23:10:53 +01:00
|
|
|
systemd-logind API). Instead of using the module you can now
|
2021-04-22 12:27:22 +02:00
|
|
|
simply add the brightnessctl package to environment.systemPackages.
|
2022-01-16 02:10:08 +01:00
|
|
|
'')
|
2020-06-14 15:12:23 +02:00
|
|
|
(mkRemovedOptionModule [ "hardware" "u2f" ] ''
|
|
|
|
The U2F modules module was removed, as all it did was adding the
|
2021-04-22 12:27:22 +02:00
|
|
|
udev rules from libu2f-host to the system. Udev gained native support
|
|
|
|
to handle FIDO security tokens, so this isn't necessary anymore.
|
2022-01-16 02:10:08 +01:00
|
|
|
'')
|
2022-07-27 02:33:28 +02:00
|
|
|
(mkRemovedOptionModule [ "hardware" "xow" ] ''
|
|
|
|
The xow package was removed from nixpkgs. Upstream has deprecated
|
|
|
|
the project and users are urged to switch to xone.
|
|
|
|
'')
|
2021-04-22 12:27:22 +02:00
|
|
|
(mkRemovedOptionModule [ "networking" "vpnc" ] "Use environment.etc.\"vpnc/service.conf\" instead.")
|
|
|
|
(mkRemovedOptionModule [ "networking" "wicd" ] "The corresponding package was removed from nixpkgs.")
|
2023-01-23 04:59:57 +01:00
|
|
|
(mkRemovedOptionModule [ "programs" "gnome-documents" ] "The corresponding package was removed from nixpkgs.")
|
2024-05-21 16:35:22 +02:00
|
|
|
(mkRemovedOptionModule [ "programs" "pantheon-tweaks" ] ''
|
|
|
|
pantheon-tweaks is no longer a switchboard plugin but an independent app,
|
|
|
|
adding the package to environment.systemPackages is sufficient.
|
|
|
|
'')
|
2022-01-16 01:54:22 +01:00
|
|
|
(mkRemovedOptionModule [ "programs" "tilp2" ] "The corresponding package was removed from nixpkgs.")
|
2020-01-13 15:59:11 +01: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"))
|
2021-02-21 13:25:56 +01:00
|
|
|
(mkRemovedOptionModule [ "security" "hideProcessInformation" ] ''
|
2024-05-21 16:35:22 +02:00
|
|
|
The hidepid module was removed, since the underlying machinery
|
|
|
|
is broken when using cgroups-v2.
|
2022-01-16 02:10:08 +01:00
|
|
|
'')
|
2023-03-19 12:46:32 +01:00
|
|
|
(mkRemovedOptionModule [ "services" "baget" "enable" ] "The baget module was removed due to the upstream package being unmaintained.")
|
2021-04-22 12:27:22 +02:00
|
|
|
(mkRemovedOptionModule [ "services" "beegfs" ] "The BeeGFS module has been removed")
|
2019-11-24 17:33:51 +01:00
|
|
|
(mkRemovedOptionModule [ "services" "beegfsEnable" ] "The BeeGFS module has been removed")
|
2020-06-05 10:44:33 +02:00
|
|
|
(mkRemovedOptionModule [ "services" "cgmanager" "enable"] "cgmanager was deprecated by lxc and therefore removed from nixpkgs.")
|
2020-08-15 16:36:22 +02:00
|
|
|
(mkRemovedOptionModule [ "services" "chronos" ] "The corresponding package was removed from nixpkgs.")
|
2022-01-02 02:17:29 +01:00
|
|
|
(mkRemovedOptionModule [ "services" "couchpotato" ] "The corresponding package was removed from nixpkgs.")
|
2022-04-26 15:43:24 +02:00
|
|
|
(mkRemovedOptionModule [ "services" "dd-agent" ] "dd-agent was removed from nixpkgs in favor of the newer datadog-agent.")
|
2018-10-12 23:38:54 +02:00
|
|
|
(mkRemovedOptionModule [ "services" "dnscrypt-proxy" ] "Use services.dnscrypt-proxy2 instead")
|
2023-06-20 19:09:07 +02:00
|
|
|
(mkRemovedOptionModule [ "services" "exhibitor" ] "The corresponding package was removed from nixpkgs.")
|
2021-12-31 12:22:19 +01:00
|
|
|
(mkRemovedOptionModule [ "services" "firefox" "syncserver" ] "The corresponding package was removed from nixpkgs.")
|
2019-11-24 17:33:51 +01:00
|
|
|
(mkRemovedOptionModule [ "services" "flashpolicyd" ] "The flashpolicyd module has been removed. Adobe Flash Player is deprecated.")
|
2019-12-21 18:46:15 +01:00
|
|
|
(mkRemovedOptionModule [ "services" "fourStore" ] "The fourStore module has been removed")
|
|
|
|
(mkRemovedOptionModule [ "services" "fourStoreEndpoint" ] "The fourStoreEndpoint module has been removed")
|
2022-03-02 20:51:47 +01:00
|
|
|
(mkRemovedOptionModule [ "services" "fprot" ] "The corresponding package was removed from nixpkgs.")
|
2020-12-10 22:19:06 +01:00
|
|
|
(mkRemovedOptionModule [ "services" "frab" ] "The frab module has been removed")
|
2023-12-28 21:49:30 +01:00
|
|
|
(mkRemovedOptionModule [ "services" "homeassistant-satellite"] "The `services.homeassistant-satellite` module has been replaced by `services.wyoming-satellite`.")
|
2024-08-03 20:40:15 +02:00
|
|
|
(mkRemovedOptionModule [ "services" "hydron" ] "The `services.hydron` module has been removed as the project has been archived upstream since 2022 and is affected by a severe remote code execution vulnerability.")
|
2023-04-08 14:00:00 +02:00
|
|
|
(mkRemovedOptionModule [ "services" "ihatemoney" ] "The ihatemoney module has been removed for lack of downstream maintainer")
|
2021-10-07 02:18:06 +02:00
|
|
|
(mkRemovedOptionModule [ "services" "kippo" ] "The corresponding package was removed from nixpkgs.")
|
2024-08-14 03:05:04 +02:00
|
|
|
(mkRemovedOptionModule [ "services" "lshd" ] "The corresponding package was removed from nixpkgs as it had no maintainer in Nixpkgs and hasn't seen an upstream release in over a decades.")
|
2022-01-12 02:27:51 +01:00
|
|
|
(mkRemovedOptionModule [ "services" "mailpile" ] "The corresponding package was removed from nixpkgs.")
|
2020-08-15 16:43:29 +02:00
|
|
|
(mkRemovedOptionModule [ "services" "marathon" ] "The corresponding package was removed from nixpkgs.")
|
2020-08-15 16:19:17 +02:00
|
|
|
(mkRemovedOptionModule [ "services" "mathics" ] "The Mathics module has been removed")
|
2020-08-21 22:00:40 +02:00
|
|
|
(mkRemovedOptionModule [ "services" "meguca" ] "Use meguca has been removed from nixpkgs")
|
2020-08-15 16:31:18 +02:00
|
|
|
(mkRemovedOptionModule [ "services" "mesos" ] "The corresponding package was removed from nixpkgs.")
|
2024-07-10 18:40:06 +02:00
|
|
|
(mkRemovedOptionModule [ "services" "mxisd" ] "The mxisd module has been removed as both mxisd and ma1sd got removed.")
|
2022-01-01 00:34:46 +01:00
|
|
|
(mkRemovedOptionModule [ "services" "moinmoin" ] "The corresponding package was removed from nixpkgs.")
|
2021-12-31 13:44:06 +01:00
|
|
|
(mkRemovedOptionModule [ "services" "mwlib" ] "The corresponding package was removed from nixpkgs.")
|
2022-02-02 03:27:08 +01:00
|
|
|
(mkRemovedOptionModule [ "services" "pantheon" "files" ] ''
|
|
|
|
This module was removed, please add pkgs.pantheon.elementary-files to environment.systemPackages directly.
|
|
|
|
'')
|
2020-01-19 01:57:10 +01:00
|
|
|
(mkRemovedOptionModule [ "services" "prey" ] ''
|
|
|
|
prey-bash-client is deprecated upstream
|
|
|
|
'')
|
2021-02-05 08:17:31 +01:00
|
|
|
(mkRemovedOptionModule [ "services" "quagga" ] "the corresponding package has been removed from nixpkgs")
|
2022-06-27 04:38:31 +02:00
|
|
|
(mkRemovedOptionModule [ "services" "railcar" ] "the corresponding package has been removed from nixpkgs")
|
2024-07-13 20:41:29 +02:00
|
|
|
(mkRemovedOptionModule [ "services" "replay-sorcery" ] "the corresponding package has been removed from nixpkgs as it is unmaintained upstream. Consider using `gpu-screen-recorder` or `obs-studio` instead.")
|
2020-06-21 23:55:14 +02:00
|
|
|
(mkRemovedOptionModule [ "services" "seeks" ] "")
|
2022-04-03 17:44:30 +02: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.
|
|
|
|
'')
|
2021-02-05 08:17:31 +01:00
|
|
|
(mkRemovedOptionModule [ "services" "venus" ] "The corresponding package was removed from nixpkgs.")
|
2021-10-10 18:19:51 +02:00
|
|
|
(mkRemovedOptionModule [ "services" "wakeonlan"] "This module was removed in favor of enabling it with networking.interfaces.<name>.wakeOnLan")
|
2019-05-14 22:26:33 +02:00
|
|
|
(mkRemovedOptionModule [ "services" "winstone" ] "The corresponding package was removed from nixpkgs.")
|
2020-01-26 23:41:19 +01: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-02-27 21:28:05 +01:00
|
|
|
LightDM. Please use the services.displayManager.autoLogin options
|
2020-01-26 23:41:19 +01:00
|
|
|
instead, or any other display manager in NixOS as they all support auto-login.
|
|
|
|
'')
|
2020-08-21 22:00:40 +02:00
|
|
|
(mkRemovedOptionModule [ "services" "xserver" "multitouch" ] ''
|
2020-02-10 23:10:53 +01:00
|
|
|
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.
|
|
|
|
'')
|
2024-07-15 09:30:53 +02:00
|
|
|
(mkRemovedOptionModule [ "services" "xmr-stak" ] "The corresponding package was removed from nixpkgs.")
|
2020-03-06 03:01:39 +01:00
|
|
|
(mkRemovedOptionModule [ "virtualisation" "rkt" ] "The rkt module has been removed, it was archived by upstream")
|
2021-12-15 18:56:08 +01:00
|
|
|
(mkRemovedOptionModule [ "services" "racoon" ] ''
|
|
|
|
The racoon module has been removed, because the software project was abandoned upstream.
|
|
|
|
'')
|
2021-12-15 19:09:05 +01:00
|
|
|
(mkRemovedOptionModule [ "services" "shellinabox" ] "The corresponding package was removed from nixpkgs.")
|
2021-12-15 19:43:30 +01:00
|
|
|
(mkRemovedOptionModule [ "services" "gogoclient" ] "The corresponding package was removed from nixpkgs.")
|
2021-12-15 19:33:29 +01:00
|
|
|
(mkRemovedOptionModule [ "services" "virtuoso" ] "The corresponding package was removed from nixpkgs.")
|
2022-03-31 22:04:35 +02:00
|
|
|
(mkRemovedOptionModule [ "services" "openfire" ] "The corresponding package was removed from nixpkgs.")
|
2022-06-22 14:14:08 +02:00
|
|
|
(mkRemovedOptionModule [ "services" "riak" ] "The corresponding package was removed from nixpkgs.")
|
2023-04-11 17:02:48 +02: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-09 22:27:23 +01:00
|
|
|
(mkRemovedOptionModule [ "services" "prayer" ] "The corresponding package was removed from nixpkgs.")
|
2024-01-22 19:43:29 +01:00
|
|
|
(mkRemovedOptionModule [ "services" "restya-board" ] "The corresponding package was removed from nixpkgs.")
|
2021-12-15 19:43:30 +01:00
|
|
|
|
2023-05-20 04:11:38 +02:00
|
|
|
(mkRemovedOptionModule [ "i18n" "inputMethod" "fcitx" ] "The fcitx module has been removed. Please use fcitx5 instead")
|
2023-04-04 12:58:07 +02: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-09-10 01:10:40 +02:00
|
|
|
(mkRemovedOptionModule [ "services" "tedicross" ] ''
|
|
|
|
The corresponding package was broken and removed from nixpkgs.
|
|
|
|
'')
|
2023-03-12 05:03:50 +01:00
|
|
|
|
2019-12-10 02:51:19 +01:00
|
|
|
# Do NOT add any option renames here, see top of the file
|
|
|
|
];
|
2015-10-14 18:05:50 +02:00
|
|
|
}
|