You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

rename.nix 20KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. { lib, pkgs, ... }:
  2. with lib;
  3. {
  4. imports = [
  5. (mkRenamedOptionModule [ "networking" "enableRT73Firmware" ] [ "hardware" "enableRedistributableFirmware" ])
  6. (mkRenamedOptionModule [ "networking" "enableIntel3945ABGFirmware" ] [ "hardware" "enableRedistributableFirmware" ])
  7. (mkRenamedOptionModule [ "networking" "enableIntel2100BGFirmware" ] [ "hardware" "enableRedistributableFirmware" ])
  8. (mkRenamedOptionModule [ "networking" "enableRalinkFirmware" ] [ "hardware" "enableRedistributableFirmware" ])
  9. (mkRenamedOptionModule [ "networking" "enableRTL8192cFirmware" ] [ "hardware" "enableRedistributableFirmware" ])
  10. (mkRenamedOptionModule [ "networking" "networkmanager" "useDnsmasq" ] [ "networking" "networkmanager" "dns" ])
  11. (mkChangedOptionModule [ "services" "printing" "gutenprint" ] [ "services" "printing" "drivers" ]
  12. (config:
  13. let enabled = getAttrFromPath [ "services" "printing" "gutenprint" ] config;
  14. in if enabled then [ pkgs.gutenprint ] else [ ]))
  15. (mkChangedOptionModule [ "services" "ddclient" "domain" ] [ "services" "ddclient" "domains" ]
  16. (config:
  17. let value = getAttrFromPath [ "services" "ddclient" "domain" ] config;
  18. in if value != "" then [ value ] else []))
  19. (mkRemovedOptionModule [ "services" "ddclient" "homeDir" ] "")
  20. (mkRenamedOptionModule [ "services" "flatpak" "extraPortals" ] [ "xdg" "portal" "extraPortals" ])
  21. (mkRenamedOptionModule [ "services" "i2pd" "extIp" ] [ "services" "i2pd" "address" ])
  22. (mkRenamedOptionModule [ "services" "kubernetes" "apiserver" "admissionControl" ] [ "services" "kubernetes" "apiserver" "enableAdmissionPlugins" ])
  23. (mkRenamedOptionModule [ "services" "kubernetes" "apiserver" "address" ] ["services" "kubernetes" "apiserver" "bindAddress"])
  24. (mkRenamedOptionModule [ "services" "kubernetes" "apiserver" "port" ] ["services" "kubernetes" "apiserver" "insecurePort"])
  25. (mkRemovedOptionModule [ "services" "kubernetes" "apiserver" "publicAddress" ] "")
  26. (mkRenamedOptionModule [ "services" "kubernetes" "addons" "dashboard" "enableRBAC" ] [ "services" "kubernetes" "addons" "dashboard" "rbac" "enable" ])
  27. (mkRenamedOptionModule [ "services" "kubernetes" "controllerManager" "address" ] ["services" "kubernetes" "controllerManager" "bindAddress"])
  28. (mkRenamedOptionModule [ "services" "kubernetes" "controllerManager" "port" ] ["services" "kubernetes" "controllerManager" "insecurePort"])
  29. (mkRenamedOptionModule [ "services" "kubernetes" "etcd" "servers" ] [ "services" "kubernetes" "apiserver" "etcd" "servers" ])
  30. (mkRenamedOptionModule [ "services" "kubernetes" "etcd" "keyFile" ] [ "services" "kubernetes" "apiserver" "etcd" "keyFile" ])
  31. (mkRenamedOptionModule [ "services" "kubernetes" "etcd" "certFile" ] [ "services" "kubernetes" "apiserver" "etcd" "certFile" ])
  32. (mkRenamedOptionModule [ "services" "kubernetes" "etcd" "caFile" ] [ "services" "kubernetes" "apiserver" "etcd" "caFile" ])
  33. (mkRemovedOptionModule [ "services" "kubernetes" "kubelet" "applyManifests" ] "")
  34. (mkRemovedOptionModule [ "services" "kubernetes" "kubelet" "cadvisorPort" ] "")
  35. (mkRemovedOptionModule [ "services" "kubernetes" "kubelet" "allowPrivileged" ] "")
  36. (mkRenamedOptionModule [ "services" "kubernetes" "proxy" "address" ] ["services" "kubernetes" "proxy" "bindAddress"])
  37. (mkRemovedOptionModule [ "services" "kubernetes" "verbose" ] "")
  38. (mkRenamedOptionModule [ "services" "logstash" "address" ] [ "services" "logstash" "listenAddress" ])
  39. (mkRenamedOptionModule [ "services" "neo4j" "host" ] [ "services" "neo4j" "defaultListenAddress" ])
  40. (mkRenamedOptionModule [ "services" "neo4j" "listenAddress" ] [ "services" "neo4j" "defaultListenAddress" ])
  41. (mkRenamedOptionModule [ "services" "neo4j" "enableBolt" ] [ "services" "neo4j" "bolt" "enable" ])
  42. (mkRenamedOptionModule [ "services" "neo4j" "enableHttps" ] [ "services" "neo4j" "https" "enable" ])
  43. (mkRenamedOptionModule [ "services" "neo4j" "certDir" ] [ "services" "neo4j" "directories" "certificates" ])
  44. (mkRenamedOptionModule [ "services" "neo4j" "dataDir" ] [ "services" "neo4j" "directories" "home" ])
  45. (mkRemovedOptionModule [ "services" "neo4j" "port" ] "Use services.neo4j.http.listenAddress instead.")
  46. (mkRemovedOptionModule [ "services" "neo4j" "boltPort" ] "Use services.neo4j.bolt.listenAddress instead.")
  47. (mkRemovedOptionModule [ "services" "neo4j" "httpsPort" ] "Use services.neo4j.https.listenAddress instead.")
  48. (mkRemovedOptionModule [ "services" "misc" "nzbget" "configFile" ] "The configuration of nzbget is now managed by users through the web interface.")
  49. (mkRemovedOptionModule [ "services" "misc" "nzbget" "dataDir" ] "The data directory for nzbget is now /var/lib/nzbget.")
  50. (mkRemovedOptionModule [ "services" "misc" "nzbget" "openFirewall" ] "The port used by nzbget is managed through the web interface so you should adjust your firewall rules accordingly.")
  51. (mkRemovedOptionModule [ "services" "prometheus" "alertmanager" "user" ] "The alertmanager service is now using systemd's DynamicUser mechanism which obviates a user setting.")
  52. (mkRemovedOptionModule [ "services" "prometheus" "alertmanager" "group" ] "The alertmanager service is now using systemd's DynamicUser mechanism which obviates a group setting.")
  53. (mkRemovedOptionModule [ "services" "prometheus" "alertmanagerURL" ] ''
  54. Due to incompatibility, the alertmanagerURL option has been removed,
  55. please use 'services.prometheus2.alertmanagers' instead.
  56. '')
  57. (mkRenamedOptionModule [ "services" "prometheus2" ] [ "services" "prometheus" ])
  58. (mkRenamedOptionModule [ "services" "tor" "relay" "portSpec" ] [ "services" "tor" "relay" "port" ])
  59. (mkRenamedOptionModule [ "services" "vmwareGuest" ] [ "virtualisation" "vmware" "guest" ])
  60. (mkRenamedOptionModule [ "jobs" ] [ "systemd" "services" ])
  61. (mkRenamedOptionModule [ "services" "gitlab" "stateDir" ] [ "services" "gitlab" "statePath" ])
  62. (mkRemovedOptionModule [ "services" "gitlab" "satelliteDir" ] "")
  63. (mkRenamedOptionModule [ "services" "clamav" "updater" "config" ] [ "services" "clamav" "updater" "extraConfig" ])
  64. (mkRemovedOptionModule [ "services" "pykms" "verbose" ] "Use services.pykms.logLevel instead")
  65. (mkRemovedOptionModule [ "security" "setuidOwners" ] "Use security.wrappers instead")
  66. (mkRemovedOptionModule [ "security" "setuidPrograms" ] "Use security.wrappers instead")
  67. (mkRenamedOptionModule [ "security" "virtualization" "flushL1DataCache" ] [ "security" "virtualisation" "flushL1DataCache" ])
  68. # PAM
  69. (mkRenamedOptionModule [ "security" "pam" "enableU2F" ] [ "security" "pam" "u2f" "enable" ])
  70. # rmilter/rspamd
  71. (mkRemovedOptionModule [ "services" "rmilter" ] "Use services.rspamd.* instead to set up milter service")
  72. # Xsession script
  73. (mkRenamedOptionModule [ "services" "xserver" "displayManager" "job" "logsXsession" ] [ "services" "xserver" "displayManager" "job" "logToFile" ])
  74. (mkRenamedOptionModule [ "services" "xserver" "displayManager" "logToJournal" ] [ "services" "xserver" "displayManager" "job" "logToJournal" ])
  75. # Old Grub-related options.
  76. (mkRenamedOptionModule [ "boot" "loader" "grub" "timeout" ] [ "boot" "loader" "timeout" ])
  77. (mkRenamedOptionModule [ "boot" "loader" "gummiboot" "timeout" ] [ "boot" "loader" "timeout" ])
  78. # OpenSSH
  79. (mkAliasOptionModule [ "services" "sshd" "enable" ] [ "services" "openssh" "enable" ])
  80. (mkAliasOptionModule [ "services" "openssh" "knownHosts" ] [ "programs" "ssh" "knownHosts" ])
  81. # libvirtd
  82. (mkRemovedOptionModule [ "virtualisation" "libvirtd" "enableKVM" ]
  83. "Set the option `virtualisation.libvirtd.qemuPackage' instead.")
  84. # ibus
  85. (mkRenamedOptionModule [ "programs" "ibus" "plugins" ] [ "i18n" "inputMethod" "ibus" "engines" ])
  86. # sandboxing
  87. (mkRenamedOptionModule [ "nix" "useChroot" ] [ "nix" "useSandbox" ])
  88. (mkRenamedOptionModule [ "nix" "chrootDirs" ] [ "nix" "sandboxPaths" ])
  89. (mkRenamedOptionModule [ "services" "xserver" "vaapiDrivers" ] [ "hardware" "opengl" "extraPackages" ])
  90. (mkAliasOptionModule [ "environment" "checkConfigurationOptions" ] [ "_module" "check" ])
  91. # opendkim
  92. (mkRenamedOptionModule [ "services" "opendkim" "keyFile" ] [ "services" "opendkim" "keyPath" ])
  93. # Enlightenment
  94. (mkRenamedOptionModule [ "services" "xserver" "desktopManager" "e19" "enable" ] [ "services" "xserver" "desktopManager" "enlightenment" "enable" ])
  95. # Iodine
  96. (mkRenamedOptionModule [ "services" "iodined" "enable" ] [ "services" "iodine" "server" "enable" ])
  97. (mkRenamedOptionModule [ "services" "iodined" "domain" ] [ "services" "iodine" "server" "domain" ])
  98. (mkRenamedOptionModule [ "services" "iodined" "ip" ] [ "services" "iodine" "server" "ip" ])
  99. (mkRenamedOptionModule [ "services" "iodined" "extraConfig" ] [ "services" "iodine" "server" "extraConfig" ])
  100. (mkRemovedOptionModule [ "services" "iodined" "client" ] "")
  101. # Unity3D
  102. (mkRenamedOptionModule [ "programs" "unity3d" "enable" ] [ "security" "chromiumSuidSandbox" "enable" ])
  103. # murmur
  104. (mkRenamedOptionModule [ "services" "murmur" "welcome" ] [ "services" "murmur" "welcometext" ])
  105. (mkRemovedOptionModule [ "services" "murmur" "pidfile" ] "Hardcoded to /run/murmur/murmurd.pid now")
  106. # parsoid
  107. (mkRemovedOptionModule [ "services" "parsoid" "interwikis" ] "Use services.parsoid.wikis instead")
  108. # plexpy / tautulli
  109. (mkRenamedOptionModule [ "services" "plexpy" ] [ "services" "tautulli" ])
  110. # piwik was renamed to matomo
  111. (mkRenamedOptionModule [ "services" "piwik" "enable" ] [ "services" "matomo" "enable" ])
  112. (mkRenamedOptionModule [ "services" "piwik" "webServerUser" ] [ "services" "matomo" "webServerUser" ])
  113. (mkRenamedOptionModule [ "services" "piwik" "phpfpmProcessManagerConfig" ] [ "services" "matomo" "phpfpmProcessManagerConfig" ])
  114. (mkRenamedOptionModule [ "services" "piwik" "nginx" ] [ "services" "matomo" "nginx" ])
  115. # tarsnap
  116. (mkRemovedOptionModule [ "services" "tarsnap" "cachedir" ] "Use services.tarsnap.archives.<name>.cachedir")
  117. # alsa
  118. (mkRenamedOptionModule [ "sound" "enableMediaKeys" ] [ "sound" "mediaKeys" "enable" ])
  119. # postgrey
  120. (mkMergedOptionModule [ [ "services" "postgrey" "inetAddr" ] [ "services" "postgrey" "inetPort" ] ] [ "services" "postgrey" "socket" ] (config: let
  121. value = p: getAttrFromPath p config;
  122. inetAddr = [ "services" "postgrey" "inetAddr" ];
  123. inetPort = [ "services" "postgrey" "inetPort" ];
  124. in
  125. if value inetAddr == null
  126. then { path = "/run/postgrey.sock"; }
  127. else { addr = value inetAddr; port = value inetPort; }
  128. ))
  129. # dhcpd
  130. (mkRenamedOptionModule [ "services" "dhcpd" ] [ "services" "dhcpd4" ])
  131. # locate
  132. (mkRenamedOptionModule [ "services" "locate" "period" ] [ "services" "locate" "interval" ])
  133. (mkRemovedOptionModule [ "services" "locate" "includeStore" ] "Use services.locate.prunePaths" )
  134. # nfs
  135. (mkRenamedOptionModule [ "services" "nfs" "lockdPort" ] [ "services" "nfs" "server" "lockdPort" ])
  136. (mkRenamedOptionModule [ "services" "nfs" "statdPort" ] [ "services" "nfs" "server" "statdPort" ])
  137. # KDE Plasma 5
  138. (mkRenamedOptionModule [ "services" "xserver" "desktopManager" "kde5" ] [ "services" "xserver" "desktopManager" "plasma5" ])
  139. # Fontconfig
  140. (mkRenamedOptionModule [ "fonts" "fontconfig" "ultimate" "allowBitmaps" ] [ "fonts" "fontconfig" "allowBitmaps" ])
  141. (mkRenamedOptionModule [ "fonts" "fontconfig" "ultimate" "allowType1" ] [ "fonts" "fontconfig" "allowType1" ])
  142. (mkRenamedOptionModule [ "fonts" "fontconfig" "ultimate" "useEmbeddedBitmaps" ] [ "fonts" "fontconfig" "useEmbeddedBitmaps" ])
  143. (mkRenamedOptionModule [ "fonts" "fontconfig" "ultimate" "forceAutohint" ] [ "fonts" "fontconfig" "forceAutohint" ])
  144. (mkRenamedOptionModule [ "fonts" "fontconfig" "ultimate" "renderMonoTTFAsBitmap" ] [ "fonts" "fontconfig" "renderMonoTTFAsBitmap" ])
  145. # postgresqlBackup
  146. (mkRemovedOptionModule [ "services" "postgresqlBackup" "period" ] ''
  147. A systemd timer is now used instead of cron.
  148. The starting time can be configured via <literal>services.postgresqlBackup.startAt</literal>.
  149. '')
  150. # phpfpm
  151. (mkRemovedOptionModule [ "services" "phpfpm" "poolConfigs" ] "Use services.phpfpm.pools instead.")
  152. # zabbixServer
  153. (mkRenamedOptionModule [ "services" "zabbixServer" "dbServer" ] [ "services" "zabbixServer" "database" "host" ])
  154. # Profile splitting
  155. (mkRenamedOptionModule [ "virtualisation" "growPartition" ] [ "boot" "growPartition" ])
  156. # misc/version.nix
  157. (mkRenamedOptionModule [ "system" "nixosVersion" ] [ "system" "nixos" "version" ])
  158. (mkRenamedOptionModule [ "system" "nixosVersionSuffix" ] [ "system" "nixos" "versionSuffix" ])
  159. (mkRenamedOptionModule [ "system" "nixosRevision" ] [ "system" "nixos" "revision" ])
  160. (mkRenamedOptionModule [ "system" "nixosLabel" ] [ "system" "nixos" "label" ])
  161. # Users
  162. (mkAliasOptionModule [ "users" "extraUsers" ] [ "users" "users" ])
  163. (mkAliasOptionModule [ "users" "extraGroups" ] [ "users" "groups" ])
  164. # Options that are obsolete and have no replacement.
  165. (mkRemovedOptionModule [ "boot" "initrd" "luks" "enable" ] "")
  166. (mkRemovedOptionModule [ "programs" "bash" "enable" ] "")
  167. (mkRemovedOptionModule [ "services" "samba" "defaultShare" ] "")
  168. (mkRemovedOptionModule [ "services" "syslog-ng" "serviceName" ] "")
  169. (mkRemovedOptionModule [ "services" "syslog-ng" "listenToJournal" ] "")
  170. (mkRemovedOptionModule [ "ec2" "metadata" ] "")
  171. (mkRemovedOptionModule [ "services" "openvpn" "enable" ] "")
  172. (mkRemovedOptionModule [ "services" "printing" "cupsFilesConf" ] "")
  173. (mkRemovedOptionModule [ "services" "printing" "cupsdConf" ] "")
  174. (mkRemovedOptionModule [ "services" "tor" "relay" "isBridge" ] "Use services.tor.relay.role instead.")
  175. (mkRemovedOptionModule [ "services" "tor" "relay" "isExit" ] "Use services.tor.relay.role instead.")
  176. (mkRemovedOptionModule [ "services" "xserver" "startGnuPGAgent" ]
  177. "See the 16.09 release notes for more information.")
  178. (mkRemovedOptionModule [ "services" "phpfpm" "phpIni" ] "")
  179. (mkRemovedOptionModule [ "services" "dovecot2" "package" ] "")
  180. (mkRemovedOptionModule [ "services" "firefox" "syncserver" "user" ] "")
  181. (mkRemovedOptionModule [ "services" "firefox" "syncserver" "group" ] "")
  182. (mkRemovedOptionModule [ "fonts" "fontconfig" "hinting" "style" ] "")
  183. (mkRemovedOptionModule [ "services" "xserver" "displayManager" "sddm" "themes" ]
  184. "Set the option `services.xserver.displayManager.sddm.package' instead.")
  185. (mkRemovedOptionModule [ "services" "xserver" "desktopManager" "xfce" "screenLock" ] "")
  186. (mkRemovedOptionModule [ "fonts" "fontconfig" "forceAutohint" ] "")
  187. (mkRemovedOptionModule [ "fonts" "fontconfig" "renderMonoTTFAsBitmap" ] "")
  188. (mkRemovedOptionModule [ "virtualisation" "xen" "qemu" ] "You don't need this option anymore, it will work without it.")
  189. (mkRemovedOptionModule [ "services" "logstash" "enableWeb" ] "The web interface was removed from logstash")
  190. (mkRemovedOptionModule [ "boot" "zfs" "enableLegacyCrypto" ] "The corresponding package was removed from nixpkgs.")
  191. (mkRemovedOptionModule [ "services" "winstone" ] "The corresponding package was removed from nixpkgs.")
  192. (mkRemovedOptionModule [ "services" "mysql" "pidDir" ] "Don't wait for pidfiles, describe dependencies through systemd")
  193. (mkRemovedOptionModule [ "services" "mysql" "rootPassword" ] "Use socket authentication or set the password outside of the nix store.")
  194. (mkRemovedOptionModule [ "services" "zabbixServer" "dbPassword" ] "Use services.zabbixServer.database.passwordFile instead.")
  195. (mkRemovedOptionModule [ "systemd" "generator-packages" ] "Use systemd.packages instead.")
  196. (mkRemovedOptionModule [ "systemd" "coredump" "enable" ] "Enabled by default. Set boot.kernel.sysctl.\"kernel.core_pattern\" = \"core\"; to disable.")
  197. # ZSH
  198. (mkRenamedOptionModule [ "programs" "zsh" "enableSyntaxHighlighting" ] [ "programs" "zsh" "syntaxHighlighting" "enable" ])
  199. (mkRenamedOptionModule [ "programs" "zsh" "syntax-highlighting" "enable" ] [ "programs" "zsh" "syntaxHighlighting" "enable" ])
  200. (mkRenamedOptionModule [ "programs" "zsh" "syntax-highlighting" "highlighters" ] [ "programs" "zsh" "syntaxHighlighting" "highlighters" ])
  201. (mkRenamedOptionModule [ "programs" "zsh" "syntax-highlighting" "patterns" ] [ "programs" "zsh" "syntaxHighlighting" "patterns" ])
  202. (mkRenamedOptionModule [ "programs" "zsh" "oh-my-zsh" "enable" ] [ "programs" "zsh" "ohMyZsh" "enable" ])
  203. (mkRenamedOptionModule [ "programs" "zsh" "oh-my-zsh" "theme" ] [ "programs" "zsh" "ohMyZsh" "theme" ])
  204. (mkRenamedOptionModule [ "programs" "zsh" "oh-my-zsh" "custom" ] [ "programs" "zsh" "ohMyZsh" "custom" ])
  205. (mkRenamedOptionModule [ "programs" "zsh" "oh-my-zsh" "plugins" ] [ "programs" "zsh" "ohMyZsh" "plugins" ])
  206. (mkRenamedOptionModule [ "programs" "zsh" "enableAutosuggestions" ] [ "programs" "zsh" "autosuggestions" "enable" ])
  207. # Xen
  208. (mkRenamedOptionModule [ "virtualisation" "xen" "qemu-package" ] [ "virtualisation" "xen" "package-qemu" ])
  209. (mkRenamedOptionModule [ "programs" "info" "enable" ] [ "documentation" "info" "enable" ])
  210. (mkRenamedOptionModule [ "programs" "man" "enable" ] [ "documentation" "man" "enable" ])
  211. (mkRenamedOptionModule [ "services" "nixosManual" "enable" ] [ "documentation" "nixos" "enable" ])
  212. # ckb
  213. (mkRenamedOptionModule [ "hardware" "ckb" "enable" ] [ "hardware" "ckb-next" "enable" ])
  214. (mkRenamedOptionModule [ "hardware" "ckb" "package" ] [ "hardware" "ckb-next" "package" ])
  215. # binfmt
  216. (mkRenamedOptionModule [ "boot" "binfmtMiscRegistrations" ] [ "boot" "binfmt" "registrations" ])
  217. # ACME
  218. (mkRemovedOptionModule [ "security" "acme" "directory"] "ACME Directory is now hardcoded to /var/lib/acme and its permisisons are managed by systemd. See https://github.com/NixOS/nixpkgs/issues/53852 for more info.")
  219. (mkRemovedOptionModule [ "security" "acme" "preDelay"] "This option has been removed. If you want to make sure that something executes before certificates are provisioned, add a RequiredBy=acme-\${cert}.service to the service you want to execute before the cert renewal")
  220. (mkRemovedOptionModule [ "security" "acme" "activationDelay"] "This option has been removed. If you want to make sure that something executes before certificates are provisioned, add a RequiredBy=acme-\${cert}.service to the service you want to execute before the cert renewal")
  221. # KSM
  222. (mkRenamedOptionModule [ "hardware" "enableKSM" ] [ "hardware" "ksm" "enable" ])
  223. # resolvconf
  224. (mkRenamedOptionModule [ "networking" "dnsSingleRequest" ] [ "networking" "resolvconf" "dnsSingleRequest" ])
  225. (mkRenamedOptionModule [ "networking" "dnsExtensionMechanism" ] [ "networking" "resolvconf" "dnsExtensionMechanism" ])
  226. (mkRenamedOptionModule [ "networking" "extraResolvconfConf" ] [ "networking" "resolvconf" "extraConfig" ])
  227. (mkRenamedOptionModule [ "networking" "resolvconfOptions" ] [ "networking" "resolvconf" "extraOptions" ])
  228. # BLCR
  229. (mkRemovedOptionModule [ "environment.blcr.enable" ] "The BLCR module has been removed")
  230. # Redis
  231. (mkRemovedOptionModule [ "services" "redis" "user" ] "The redis module now is hardcoded to the redis user.")
  232. (mkRemovedOptionModule [ "services" "redis" "dbpath" ] "The redis module now uses /var/lib/redis as data directory.")
  233. (mkRemovedOptionModule [ "services" "redis" "dbFilename" ] "The redis module now uses /var/lib/redis/dump.rdb as database dump location.")
  234. (mkRemovedOptionModule [ "services" "redis" "appendOnlyFilename" ] "This option was never used.")
  235. (mkRemovedOptionModule [ "services" "redis" "pidFile" ] "This option was removed.")
  236. ] ++ (forEach [ "blackboxExporter" "collectdExporter" "fritzboxExporter"
  237. "jsonExporter" "minioExporter" "nginxExporter" "nodeExporter"
  238. "snmpExporter" "unifiExporter" "varnishExporter" ]
  239. (opt: mkRemovedOptionModule [ "services" "prometheus" "${opt}" ] ''
  240. The prometheus exporters are now configured using `services.prometheus.exporters'.
  241. See the 18.03 release notes for more information.
  242. '' ));
  243. }