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 = [
|
2017-10-06 23:39:25 +00:00
|
|
|
(mkRenamedOptionModule [ "networking" "enableRT73Firmware" ] [ "hardware" "enableRedistributableFirmware" ])
|
|
|
|
(mkRenamedOptionModule [ "networking" "enableIntel3945ABGFirmware" ] [ "hardware" "enableRedistributableFirmware" ])
|
|
|
|
(mkRenamedOptionModule [ "networking" "enableIntel2100BGFirmware" ] [ "hardware" "enableRedistributableFirmware" ])
|
|
|
|
(mkRenamedOptionModule [ "networking" "enableRalinkFirmware" ] [ "hardware" "enableRedistributableFirmware" ])
|
|
|
|
(mkRenamedOptionModule [ "networking" "enableRTL8192cFirmware" ] [ "hardware" "enableRedistributableFirmware" ])
|
2018-05-03 12:05:43 +00:00
|
|
|
(mkRenamedOptionModule [ "networking" "networkmanager" "useDnsmasq" ] [ "networking" "networkmanager" "dns" ])
|
2019-11-24 11:56:44 +00:00
|
|
|
(mkRenamedOptionModule [ "networking" "connman" ] [ "services" "connman" ])
|
2019-11-24 15:38:52 +00:00
|
|
|
(mkRenamedOptionModule [ "networking" "defaultMailServer" ] [ "services" "ssmtp" ])
|
|
|
|
(mkRenamedOptionModule [ "services" "ssmtp" "directDelivery" ] [ "services" "ssmtp" "enable" ])
|
2017-08-20 11:20:45 +00:00
|
|
|
(mkChangedOptionModule [ "services" "printing" "gutenprint" ] [ "services" "printing" "drivers" ]
|
|
|
|
(config:
|
|
|
|
let enabled = getAttrFromPath [ "services" "printing" "gutenprint" ] config;
|
|
|
|
in if enabled then [ pkgs.gutenprint ] else [ ]))
|
2018-10-30 21:18:59 +00:00
|
|
|
(mkChangedOptionModule [ "services" "ddclient" "domain" ] [ "services" "ddclient" "domains" ]
|
|
|
|
(config:
|
|
|
|
let value = getAttrFromPath [ "services" "ddclient" "domain" ] config;
|
|
|
|
in if value != "" then [ value ] else []))
|
2018-03-12 15:25:28 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "ddclient" "homeDir" ] "")
|
2019-07-10 14:01:25 +00:00
|
|
|
(mkRenamedOptionModule [ "services" "flatpak" "extraPortals" ] [ "xdg" "portal" "extraPortals" ])
|
2017-03-01 00:00:00 +00:00
|
|
|
(mkRenamedOptionModule [ "services" "i2pd" "extIp" ] [ "services" "i2pd" "address" ])
|
2018-03-30 23:16:32 +00:00
|
|
|
(mkRenamedOptionModule [ "services" "kubernetes" "apiserver" "admissionControl" ] [ "services" "kubernetes" "apiserver" "enableAdmissionPlugins" ])
|
2018-06-08 08:16:43 +00:00
|
|
|
(mkRenamedOptionModule [ "services" "kubernetes" "apiserver" "address" ] ["services" "kubernetes" "apiserver" "bindAddress"])
|
2018-07-22 11:14:20 +00:00
|
|
|
(mkRenamedOptionModule [ "services" "kubernetes" "apiserver" "port" ] ["services" "kubernetes" "apiserver" "insecurePort"])
|
2018-06-08 08:16:43 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "kubernetes" "apiserver" "publicAddress" ] "")
|
2018-06-18 11:05:01 +00:00
|
|
|
(mkRenamedOptionModule [ "services" "kubernetes" "addons" "dashboard" "enableRBAC" ] [ "services" "kubernetes" "addons" "dashboard" "rbac" "enable" ])
|
2018-07-22 11:14:20 +00:00
|
|
|
(mkRenamedOptionModule [ "services" "kubernetes" "controllerManager" "address" ] ["services" "kubernetes" "controllerManager" "bindAddress"])
|
|
|
|
(mkRenamedOptionModule [ "services" "kubernetes" "controllerManager" "port" ] ["services" "kubernetes" "controllerManager" "insecurePort"])
|
|
|
|
(mkRenamedOptionModule [ "services" "kubernetes" "etcd" "servers" ] [ "services" "kubernetes" "apiserver" "etcd" "servers" ])
|
|
|
|
(mkRenamedOptionModule [ "services" "kubernetes" "etcd" "keyFile" ] [ "services" "kubernetes" "apiserver" "etcd" "keyFile" ])
|
|
|
|
(mkRenamedOptionModule [ "services" "kubernetes" "etcd" "certFile" ] [ "services" "kubernetes" "apiserver" "etcd" "certFile" ])
|
|
|
|
(mkRenamedOptionModule [ "services" "kubernetes" "etcd" "caFile" ] [ "services" "kubernetes" "apiserver" "etcd" "caFile" ])
|
|
|
|
(mkRemovedOptionModule [ "services" "kubernetes" "kubelet" "applyManifests" ] "")
|
2018-09-30 12:49:26 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "kubernetes" "kubelet" "cadvisorPort" ] "")
|
2019-08-24 11:22:47 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "kubernetes" "kubelet" "allowPrivileged" ] "")
|
2018-07-22 11:14:20 +00:00
|
|
|
(mkRenamedOptionModule [ "services" "kubernetes" "proxy" "address" ] ["services" "kubernetes" "proxy" "bindAddress"])
|
|
|
|
(mkRemovedOptionModule [ "services" "kubernetes" "verbose" ] "")
|
2017-03-01 00:00:00 +00:00
|
|
|
(mkRenamedOptionModule [ "services" "logstash" "address" ] [ "services" "logstash" "listenAddress" ])
|
2018-06-01 06:11:11 +00:00
|
|
|
(mkRenamedOptionModule [ "services" "neo4j" "host" ] [ "services" "neo4j" "defaultListenAddress" ])
|
|
|
|
(mkRenamedOptionModule [ "services" "neo4j" "listenAddress" ] [ "services" "neo4j" "defaultListenAddress" ])
|
|
|
|
(mkRenamedOptionModule [ "services" "neo4j" "enableBolt" ] [ "services" "neo4j" "bolt" "enable" ])
|
|
|
|
(mkRenamedOptionModule [ "services" "neo4j" "enableHttps" ] [ "services" "neo4j" "https" "enable" ])
|
|
|
|
(mkRenamedOptionModule [ "services" "neo4j" "certDir" ] [ "services" "neo4j" "directories" "certificates" ])
|
|
|
|
(mkRenamedOptionModule [ "services" "neo4j" "dataDir" ] [ "services" "neo4j" "directories" "home" ])
|
|
|
|
(mkRemovedOptionModule [ "services" "neo4j" "port" ] "Use services.neo4j.http.listenAddress instead.")
|
|
|
|
(mkRemovedOptionModule [ "services" "neo4j" "boltPort" ] "Use services.neo4j.bolt.listenAddress instead.")
|
|
|
|
(mkRemovedOptionModule [ "services" "neo4j" "httpsPort" ] "Use services.neo4j.https.listenAddress instead.")
|
2019-04-22 12:06:33 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "misc" "nzbget" "configFile" ] "The configuration of nzbget is now managed by users through the web interface.")
|
|
|
|
(mkRemovedOptionModule [ "services" "misc" "nzbget" "dataDir" ] "The data directory for nzbget is now /var/lib/nzbget.")
|
|
|
|
(mkRemovedOptionModule [ "services" "misc" "nzbget" "openFirewall" ] "The port used by nzbget is managed through the web interface so you should adjust your firewall rules accordingly.")
|
2019-04-10 15:12:36 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "prometheus" "alertmanager" "user" ] "The alertmanager service is now using systemd's DynamicUser mechanism which obviates a user setting.")
|
|
|
|
(mkRemovedOptionModule [ "services" "prometheus" "alertmanager" "group" ] "The alertmanager service is now using systemd's DynamicUser mechanism which obviates a group setting.")
|
2019-09-06 19:40:27 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "prometheus" "alertmanagerURL" ] ''
|
2019-08-11 11:39:27 +00:00
|
|
|
Due to incompatibility, the alertmanagerURL option has been removed,
|
|
|
|
please use 'services.prometheus2.alertmanagers' instead.
|
|
|
|
'')
|
2019-09-06 19:40:27 +00:00
|
|
|
(mkRenamedOptionModule [ "services" "prometheus2" ] [ "services" "prometheus" ])
|
2017-03-01 00:00:00 +00:00
|
|
|
(mkRenamedOptionModule [ "services" "tor" "relay" "portSpec" ] [ "services" "tor" "relay" "port" ])
|
2018-05-28 07:24:29 +00:00
|
|
|
(mkRenamedOptionModule [ "services" "vmwareGuest" ] [ "virtualisation" "vmware" "guest" ])
|
2016-01-14 12:07:56 +00:00
|
|
|
(mkRenamedOptionModule [ "jobs" ] [ "systemd" "services" ])
|
2015-12-23 22:58:42 +00:00
|
|
|
|
2016-01-30 13:47:04 +00:00
|
|
|
(mkRenamedOptionModule [ "services" "gitlab" "stateDir" ] [ "services" "gitlab" "statePath" ])
|
2016-03-26 23:01:43 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "gitlab" "satelliteDir" ] "")
|
2016-01-30 13:47:04 +00:00
|
|
|
|
2016-11-15 03:40:33 +00:00
|
|
|
(mkRenamedOptionModule [ "services" "clamav" "updater" "config" ] [ "services" "clamav" "updater" "extraConfig" ])
|
|
|
|
|
2019-07-05 01:46:03 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "pykms" "verbose" ] "Use services.pykms.logLevel instead")
|
|
|
|
|
2017-02-14 21:58:11 +00:00
|
|
|
(mkRemovedOptionModule [ "security" "setuidOwners" ] "Use security.wrappers instead")
|
|
|
|
(mkRemovedOptionModule [ "security" "setuidPrograms" ] "Use security.wrappers instead")
|
|
|
|
|
2019-07-19 13:49:37 +00:00
|
|
|
(mkRenamedOptionModule [ "security" "virtualization" "flushL1DataCache" ] [ "security" "virtualisation" "flushL1DataCache" ])
|
|
|
|
|
2019-01-29 16:45:26 +00:00
|
|
|
# PAM
|
|
|
|
(mkRenamedOptionModule [ "security" "pam" "enableU2F" ] [ "security" "pam" "u2f" "enable" ])
|
|
|
|
|
2019-08-23 13:24:35 +00:00
|
|
|
# rmilter/rspamd
|
|
|
|
(mkRemovedOptionModule [ "services" "rmilter" ] "Use services.rspamd.* instead to set up milter service")
|
2017-01-28 01:46:16 +00:00
|
|
|
|
2017-09-14 22:08:16 +00:00
|
|
|
# Xsession script
|
|
|
|
(mkRenamedOptionModule [ "services" "xserver" "displayManager" "job" "logsXsession" ] [ "services" "xserver" "displayManager" "job" "logToFile" ])
|
|
|
|
(mkRenamedOptionModule [ "services" "xserver" "displayManager" "logToJournal" ] [ "services" "xserver" "displayManager" "job" "logToJournal" ])
|
|
|
|
|
2015-10-14 16:05:50 +00:00
|
|
|
# Old Grub-related options.
|
2016-05-25 08:34:54 +00:00
|
|
|
(mkRenamedOptionModule [ "boot" "loader" "grub" "timeout" ] [ "boot" "loader" "timeout" ])
|
|
|
|
(mkRenamedOptionModule [ "boot" "loader" "gummiboot" "timeout" ] [ "boot" "loader" "timeout" ])
|
2015-10-14 16:05:50 +00:00
|
|
|
|
|
|
|
# OpenSSH
|
|
|
|
(mkAliasOptionModule [ "services" "sshd" "enable" ] [ "services" "openssh" "enable" ])
|
|
|
|
(mkAliasOptionModule [ "services" "openssh" "knownHosts" ] [ "programs" "ssh" "knownHosts" ])
|
|
|
|
|
2017-12-06 11:07:41 +00:00
|
|
|
# libvirtd
|
|
|
|
(mkRemovedOptionModule [ "virtualisation" "libvirtd" "enableKVM" ]
|
|
|
|
"Set the option `virtualisation.libvirtd.qemuPackage' instead.")
|
|
|
|
|
2016-02-10 07:10:35 +00:00
|
|
|
# ibus
|
2016-04-13 00:32:53 +00:00
|
|
|
(mkRenamedOptionModule [ "programs" "ibus" "plugins" ] [ "i18n" "inputMethod" "ibus" "engines" ])
|
2016-02-10 07:10:35 +00:00
|
|
|
|
2016-04-25 09:00:26 +00:00
|
|
|
# sandboxing
|
|
|
|
(mkRenamedOptionModule [ "nix" "useChroot" ] [ "nix" "useSandbox" ])
|
|
|
|
(mkRenamedOptionModule [ "nix" "chrootDirs" ] [ "nix" "sandboxPaths" ])
|
|
|
|
|
2016-01-24 23:57:28 +00:00
|
|
|
(mkRenamedOptionModule [ "services" "xserver" "vaapiDrivers" ] [ "hardware" "opengl" "extraPackages" ])
|
2015-10-14 16:05:50 +00:00
|
|
|
|
|
|
|
(mkAliasOptionModule [ "environment" "checkConfigurationOptions" ] [ "_module" "check" ])
|
|
|
|
|
2017-09-13 10:13:08 +00:00
|
|
|
# opendkim
|
|
|
|
(mkRenamedOptionModule [ "services" "opendkim" "keyFile" ] [ "services" "opendkim" "keyPath" ])
|
|
|
|
|
2016-03-11 23:43:40 +00:00
|
|
|
# Enlightenment
|
|
|
|
(mkRenamedOptionModule [ "services" "xserver" "desktopManager" "e19" "enable" ] [ "services" "xserver" "desktopManager" "enlightenment" "enable" ])
|
|
|
|
|
2016-03-26 16:02:00 +00:00
|
|
|
# Iodine
|
|
|
|
(mkRenamedOptionModule [ "services" "iodined" "enable" ] [ "services" "iodine" "server" "enable" ])
|
|
|
|
(mkRenamedOptionModule [ "services" "iodined" "domain" ] [ "services" "iodine" "server" "domain" ])
|
|
|
|
(mkRenamedOptionModule [ "services" "iodined" "ip" ] [ "services" "iodine" "server" "ip" ])
|
|
|
|
(mkRenamedOptionModule [ "services" "iodined" "extraConfig" ] [ "services" "iodine" "server" "extraConfig" ])
|
2016-03-26 23:01:43 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "iodined" "client" ] "")
|
2016-03-26 16:02:00 +00:00
|
|
|
|
2016-08-07 22:56:47 +00:00
|
|
|
# Unity3D
|
|
|
|
(mkRenamedOptionModule [ "programs" "unity3d" "enable" ] [ "security" "chromiumSuidSandbox" "enable" ])
|
|
|
|
|
2016-09-13 23:24:25 +00:00
|
|
|
# murmur
|
|
|
|
(mkRenamedOptionModule [ "services" "murmur" "welcome" ] [ "services" "murmur" "welcometext" ])
|
2018-04-11 14:41:42 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "murmur" "pidfile" ] "Hardcoded to /run/murmur/murmurd.pid now")
|
2016-09-13 23:24:25 +00:00
|
|
|
|
2016-11-20 14:41:38 +00:00
|
|
|
# parsoid
|
2018-04-11 14:41:42 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "parsoid" "interwikis" ] "Use services.parsoid.wikis instead")
|
2016-11-20 14:41:38 +00:00
|
|
|
|
2019-02-28 18:07:00 +00:00
|
|
|
# plexpy / tautulli
|
|
|
|
(mkRenamedOptionModule [ "services" "plexpy" ] [ "services" "tautulli" ])
|
|
|
|
|
2018-01-16 17:44:27 +00:00
|
|
|
# piwik was renamed to matomo
|
|
|
|
(mkRenamedOptionModule [ "services" "piwik" "enable" ] [ "services" "matomo" "enable" ])
|
|
|
|
(mkRenamedOptionModule [ "services" "piwik" "webServerUser" ] [ "services" "matomo" "webServerUser" ])
|
2019-09-24 08:03:06 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "piwik" "phpfpmProcessManagerConfig" ] "Use services.phpfpm.pools.<name>.settings")
|
|
|
|
(mkRemovedOptionModule [ "services" "matomo" "phpfpmProcessManagerConfig" ] "Use services.phpfpm.pools.<name>.settings")
|
2018-01-16 17:44:27 +00:00
|
|
|
(mkRenamedOptionModule [ "services" "piwik" "nginx" ] [ "services" "matomo" "nginx" ])
|
|
|
|
|
2016-09-29 23:27:34 +00:00
|
|
|
# tarsnap
|
|
|
|
(mkRemovedOptionModule [ "services" "tarsnap" "cachedir" ] "Use services.tarsnap.archives.<name>.cachedir")
|
|
|
|
|
2017-01-01 10:44:07 +00:00
|
|
|
# alsa
|
|
|
|
(mkRenamedOptionModule [ "sound" "enableMediaKeys" ] [ "sound" "mediaKeys" "enable" ])
|
|
|
|
|
2017-01-02 17:01:42 +00:00
|
|
|
# postgrey
|
|
|
|
(mkMergedOptionModule [ [ "services" "postgrey" "inetAddr" ] [ "services" "postgrey" "inetPort" ] ] [ "services" "postgrey" "socket" ] (config: let
|
|
|
|
value = p: getAttrFromPath p config;
|
|
|
|
inetAddr = [ "services" "postgrey" "inetAddr" ];
|
|
|
|
inetPort = [ "services" "postgrey" "inetPort" ];
|
|
|
|
in
|
|
|
|
if value inetAddr == null
|
2018-12-19 21:37:15 +00:00
|
|
|
then { path = "/run/postgrey.sock"; }
|
2017-01-02 17:01:42 +00:00
|
|
|
else { addr = value inetAddr; port = value inetPort; }
|
|
|
|
))
|
|
|
|
|
2017-01-14 11:36:33 +00:00
|
|
|
# dhcpd
|
|
|
|
(mkRenamedOptionModule [ "services" "dhcpd" ] [ "services" "dhcpd4" ])
|
|
|
|
|
2017-01-26 11:56:53 +00:00
|
|
|
# locate
|
|
|
|
(mkRenamedOptionModule [ "services" "locate" "period" ] [ "services" "locate" "interval" ])
|
2017-01-05 17:57:45 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "locate" "includeStore" ] "Use services.locate.prunePaths" )
|
2017-01-26 11:56:53 +00:00
|
|
|
|
2017-01-29 18:11:50 +00:00
|
|
|
# nfs
|
|
|
|
(mkRenamedOptionModule [ "services" "nfs" "lockdPort" ] [ "services" "nfs" "server" "lockdPort" ])
|
|
|
|
(mkRenamedOptionModule [ "services" "nfs" "statdPort" ] [ "services" "nfs" "server" "statdPort" ])
|
|
|
|
|
2017-02-25 20:43:13 +00:00
|
|
|
# KDE Plasma 5
|
|
|
|
(mkRenamedOptionModule [ "services" "xserver" "desktopManager" "kde5" ] [ "services" "xserver" "desktopManager" "plasma5" ])
|
|
|
|
|
2017-03-04 17:23:34 +00:00
|
|
|
# Fontconfig
|
2018-04-06 02:12:49 +00:00
|
|
|
(mkRenamedOptionModule [ "fonts" "fontconfig" "ultimate" "allowBitmaps" ] [ "fonts" "fontconfig" "allowBitmaps" ])
|
|
|
|
(mkRenamedOptionModule [ "fonts" "fontconfig" "ultimate" "allowType1" ] [ "fonts" "fontconfig" "allowType1" ])
|
|
|
|
(mkRenamedOptionModule [ "fonts" "fontconfig" "ultimate" "useEmbeddedBitmaps" ] [ "fonts" "fontconfig" "useEmbeddedBitmaps" ])
|
|
|
|
(mkRenamedOptionModule [ "fonts" "fontconfig" "ultimate" "forceAutohint" ] [ "fonts" "fontconfig" "forceAutohint" ])
|
|
|
|
(mkRenamedOptionModule [ "fonts" "fontconfig" "ultimate" "renderMonoTTFAsBitmap" ] [ "fonts" "fontconfig" "renderMonoTTFAsBitmap" ])
|
2017-03-04 17:23:34 +00:00
|
|
|
|
2018-06-19 16:22:46 +00:00
|
|
|
# postgresqlBackup
|
|
|
|
(mkRemovedOptionModule [ "services" "postgresqlBackup" "period" ] ''
|
|
|
|
A systemd timer is now used instead of cron.
|
|
|
|
The starting time can be configured via <literal>services.postgresqlBackup.startAt</literal>.
|
|
|
|
'')
|
|
|
|
|
2019-07-03 16:11:38 +00:00
|
|
|
# phpfpm
|
|
|
|
(mkRemovedOptionModule [ "services" "phpfpm" "poolConfigs" ] "Use services.phpfpm.pools instead.")
|
|
|
|
|
2019-07-11 22:54:15 +00:00
|
|
|
# zabbixServer
|
|
|
|
(mkRenamedOptionModule [ "services" "zabbixServer" "dbServer" ] [ "services" "zabbixServer" "database" "host" ])
|
|
|
|
|
2018-01-06 13:52:51 +00:00
|
|
|
# Profile splitting
|
2018-08-28 12:23:13 +00:00
|
|
|
(mkRenamedOptionModule [ "virtualisation" "growPartition" ] [ "boot" "growPartition" ])
|
2018-01-06 13:52:51 +00:00
|
|
|
|
2017-04-01 00:00:00 +00:00
|
|
|
# misc/version.nix
|
2018-04-06 02:12:49 +00:00
|
|
|
(mkRenamedOptionModule [ "system" "nixosVersion" ] [ "system" "nixos" "version" ])
|
|
|
|
(mkRenamedOptionModule [ "system" "nixosVersionSuffix" ] [ "system" "nixos" "versionSuffix" ])
|
|
|
|
(mkRenamedOptionModule [ "system" "nixosRevision" ] [ "system" "nixos" "revision" ])
|
|
|
|
(mkRenamedOptionModule [ "system" "nixosLabel" ] [ "system" "nixos" "label" ])
|
2017-04-01 00:00:00 +00:00
|
|
|
|
2018-03-20 22:40:57 +00:00
|
|
|
# Users
|
|
|
|
(mkAliasOptionModule [ "users" "extraUsers" ] [ "users" "users" ])
|
|
|
|
(mkAliasOptionModule [ "users" "extraGroups" ] [ "users" "groups" ])
|
|
|
|
|
2015-10-14 16:05:50 +00:00
|
|
|
# Options that are obsolete and have no replacement.
|
2016-03-26 23:01:43 +00:00
|
|
|
(mkRemovedOptionModule [ "boot" "initrd" "luks" "enable" ] "")
|
|
|
|
(mkRemovedOptionModule [ "programs" "bash" "enable" ] "")
|
|
|
|
(mkRemovedOptionModule [ "services" "samba" "defaultShare" ] "")
|
|
|
|
(mkRemovedOptionModule [ "services" "syslog-ng" "serviceName" ] "")
|
|
|
|
(mkRemovedOptionModule [ "services" "syslog-ng" "listenToJournal" ] "")
|
|
|
|
(mkRemovedOptionModule [ "ec2" "metadata" ] "")
|
|
|
|
(mkRemovedOptionModule [ "services" "openvpn" "enable" ] "")
|
|
|
|
(mkRemovedOptionModule [ "services" "printing" "cupsFilesConf" ] "")
|
|
|
|
(mkRemovedOptionModule [ "services" "printing" "cupsdConf" ] "")
|
2017-03-01 00:00:00 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "tor" "relay" "isBridge" ] "Use services.tor.relay.role instead.")
|
|
|
|
(mkRemovedOptionModule [ "services" "tor" "relay" "isExit" ] "Use services.tor.relay.role instead.")
|
2016-03-26 23:01:43 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "xserver" "startGnuPGAgent" ]
|
2016-09-30 10:00:33 +00:00
|
|
|
"See the 16.09 release notes for more information.")
|
2016-03-26 23:01:43 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "phpfpm" "phpIni" ] "")
|
|
|
|
(mkRemovedOptionModule [ "services" "dovecot2" "package" ] "")
|
2017-12-08 22:23:14 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "firefox" "syncserver" "user" ] "")
|
|
|
|
(mkRemovedOptionModule [ "services" "firefox" "syncserver" "group" ] "")
|
freetype: 2.6.5 -> 2.7.1
The Infinality bytecode interpreter is removed in favor of the new v40 TrueType
interpreter. In the past, the Infinality interpreter provided support for
ClearType-style hinting instructions while the default interpreter (then v35)
provided support only for original TrueType-style instructions. The v40
interpreter corrects this deficiency, so the Infinality interpreter is no longer
necessary.
To understand why the Infinality interpreter is no longer necessary, we should
understand how ClearType differs from TrueType and how the v40 interpreter
works. The following is a summary of information available on the FreeType
website [1] mixed with my own editorializing.
TrueType instructions use horizontal and vertical hints to improve glyph
rendering. Before TrueType, fonts were only vertically hinted; horizontal hints
improved rendering by snapping stems to pixel boundaries. Horizontal hinting is
a risk because it can significantly distort glyph shapes and kerning. Extensive
testing at different resolutions is needed to perfect the TrueType
hints. Microsoft invested significant effort to do this with its "Core fonts for
the Web" project, but few other typefaces have seen this level of attention.
With the advent of subpixel rendering, the effective horizontal resolution of
most displays increased significantly. ClearType eschews horizontal hinting in
favor of horizontal supersampling. Most fonts are designed for the Microsoft
bytecode interpreter, which implements a compatibility mode with
TrueType-style (horizontal and vertical) instructions. However, applying the
full horizontal hints to subpixel-rendered fonts leads to color fringes and
inconsistent stem widths. The Infinality interpreter implements several
techniques to mitigate these problems, going so far as to embed font- and
glyph-specific hacks in the interpreter. On the other hand, the v40 interpreter
ignores the horizontal hinting instructions so that glyphs render as they are
intended to on the Microsoft interpreter. Without the horizontal hints, the
problems of glyph and kerning distortion, color fringes, and inconsistent stem
widths--the problems the Infinality interpreter was created to solve--simply
don't occur in the first place.
There are also security concerns which motivate removing the Infinality patches.
Although there is an updated version of the Infinality interpreter for FreeType
2.7, the lack of a consistent upstream maintainer is a security concern. The
interpreter is a Turing-complete virtual machine which has had security
vulnerabilities in the past. While the default interpreter is used in billions
of devices and is maintained by an active developer, the Infinality interpreter
is neither scrutinized nor maintained. We will probably never know if there are
defects in the Infinality interpreter, and if they were discovered they would
likely never be fixed. I do not think that is an acceptable situtation for a
core library like FreeType.
Dropping the Infinality patches means that font rendering will be less
customizable. I think this is an acceptable trade-off. The Infinality
interpreter made many compromises to mitigate the problems with horizontal
hinting; the main purpose of customization is to tailor these compromises to the
user's preferences. The new interpreter does not have to make these compromises
because it renders fonts as their designers intended, so this level of
customization is not necessary.
The Infinality-associated patches are also removed from cairo. These patches
only set the default rendering options in case they aren't set though
Fontconfig. On NixOS, the rendering options are always set in Fontconfig, so
these patches never actually did anything for us!
The Fontconfig test suite is patched to account for a quirk in the way PCF fonts
are named.
The fontconfig option `hintstyle` is no longer configurable in NixOS. This
option selects the TrueType interpreter; the v40 interpreter is `hintslight` and
the older v35 interpreter is `hintmedium` or `hintfull` (which have actually
always been the same thing). The setting may still be changed through the
`localConf` option or by creating a user Fontconfig file.
Users with HiDPI displays should probably disable hinting and antialiasing: at
best they have no visible effect.
The fontconfig-ultimate settings are still available in NixOS, but they are no
longer the default. They still work, but their main purpose is to set rendering
quirks which are no longer necessary and may actually be
detrimental (e.g. setting `hintfull` for some fonts). Also, the vast array of
font substitutions provided is not an appropriate default; the default setting
should be to give the user the font they asked for.
[1]. https://www.freetype.org/freetype2/docs/subpixel-hinting.html
2017-03-05 23:39:38 +00:00
|
|
|
(mkRemovedOptionModule [ "fonts" "fontconfig" "hinting" "style" ] "")
|
2017-03-22 12:39:50 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "xserver" "displayManager" "sddm" "themes" ]
|
|
|
|
"Set the option `services.xserver.displayManager.sddm.package' instead.")
|
2018-07-12 01:41:06 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "xserver" "desktopManager" "xfce" "screenLock" ] "")
|
2017-04-03 13:23:32 +00:00
|
|
|
(mkRemovedOptionModule [ "fonts" "fontconfig" "forceAutohint" ] "")
|
2017-04-03 13:24:32 +00:00
|
|
|
(mkRemovedOptionModule [ "fonts" "fontconfig" "renderMonoTTFAsBitmap" ] "")
|
2017-12-07 21:26:49 +00:00
|
|
|
(mkRemovedOptionModule [ "virtualisation" "xen" "qemu" ] "You don't need this option anymore, it will work without it.")
|
2018-08-03 10:23:56 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "logstash" "enableWeb" ] "The web interface was removed from logstash")
|
2018-08-13 17:47:30 +00:00
|
|
|
(mkRemovedOptionModule [ "boot" "zfs" "enableLegacyCrypto" ] "The corresponding package was removed from nixpkgs.")
|
2019-05-14 20:26:33 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "winstone" ] "The corresponding package was removed from nixpkgs.")
|
2019-05-17 12:12:52 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "mysql" "pidDir" ] "Don't wait for pidfiles, describe dependencies through systemd")
|
2019-06-25 21:05:55 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "mysql" "rootPassword" ] "Use socket authentication or set the password outside of the nix store.")
|
2019-07-11 22:54:15 +00:00
|
|
|
(mkRemovedOptionModule [ "services" "zabbixServer" "dbPassword" ] "Use services.zabbixServer.database.passwordFile instead.")
|
2019-07-26 09:11:44 +00:00
|
|
|
(mkRemovedOptionModule [ "systemd" "generator-packages" ] "Use systemd.packages instead.")
|
2019-10-31 14:19:04 +00:00
|
|
|
(mkRemovedOptionModule [ "fonts" "enableCoreFonts" ] "Use fonts.fonts = [ pkgs.corefonts ]; instead.")
|
2019-11-24 13:03:29 +00:00
|
|
|
(mkRemovedOptionModule [ "networking" "vpnc" ] "Use environment.etc.\"vpnc/service.conf\" instead.")
|
2019-11-29 11:08:34 +00:00
|
|
|
(mkRemovedOptionModule [ "networking" "hostConf" ] "Use environment.etc.\"host.conf\" instead.")
|
2017-04-23 19:17:31 +00:00
|
|
|
|
|
|
|
# ZSH
|
2017-05-09 08:37:54 +00:00
|
|
|
(mkRenamedOptionModule [ "programs" "zsh" "enableSyntaxHighlighting" ] [ "programs" "zsh" "syntaxHighlighting" "enable" ])
|
|
|
|
(mkRenamedOptionModule [ "programs" "zsh" "syntax-highlighting" "enable" ] [ "programs" "zsh" "syntaxHighlighting" "enable" ])
|
|
|
|
(mkRenamedOptionModule [ "programs" "zsh" "syntax-highlighting" "highlighters" ] [ "programs" "zsh" "syntaxHighlighting" "highlighters" ])
|
|
|
|
(mkRenamedOptionModule [ "programs" "zsh" "syntax-highlighting" "patterns" ] [ "programs" "zsh" "syntaxHighlighting" "patterns" ])
|
2017-05-25 08:51:26 +00:00
|
|
|
(mkRenamedOptionModule [ "programs" "zsh" "oh-my-zsh" "enable" ] [ "programs" "zsh" "ohMyZsh" "enable" ])
|
|
|
|
(mkRenamedOptionModule [ "programs" "zsh" "oh-my-zsh" "theme" ] [ "programs" "zsh" "ohMyZsh" "theme" ])
|
|
|
|
(mkRenamedOptionModule [ "programs" "zsh" "oh-my-zsh" "custom" ] [ "programs" "zsh" "ohMyZsh" "custom" ])
|
|
|
|
(mkRenamedOptionModule [ "programs" "zsh" "oh-my-zsh" "plugins" ] [ "programs" "zsh" "ohMyZsh" "plugins" ])
|
2017-12-07 21:26:49 +00:00
|
|
|
|
2018-06-10 21:08:50 +00:00
|
|
|
(mkRenamedOptionModule [ "programs" "zsh" "enableAutosuggestions" ] [ "programs" "zsh" "autosuggestions" "enable" ])
|
|
|
|
|
2017-12-07 21:26:49 +00:00
|
|
|
# Xen
|
|
|
|
(mkRenamedOptionModule [ "virtualisation" "xen" "qemu-package" ] [ "virtualisation" "xen" "package-qemu" ])
|
2018-03-26 18:22:04 +00:00
|
|
|
|
|
|
|
(mkRenamedOptionModule [ "programs" "info" "enable" ] [ "documentation" "info" "enable" ])
|
|
|
|
(mkRenamedOptionModule [ "programs" "man" "enable" ] [ "documentation" "man" "enable" ])
|
2018-09-06 19:17:48 +00:00
|
|
|
(mkRenamedOptionModule [ "services" "nixosManual" "enable" ] [ "documentation" "nixos" "enable" ])
|
2018-03-26 18:22:04 +00:00
|
|
|
|
2018-11-06 00:50:00 +00:00
|
|
|
# ckb
|
|
|
|
(mkRenamedOptionModule [ "hardware" "ckb" "enable" ] [ "hardware" "ckb-next" "enable" ])
|
|
|
|
(mkRenamedOptionModule [ "hardware" "ckb" "package" ] [ "hardware" "ckb-next" "package" ])
|
|
|
|
|
2019-05-10 22:03:24 +00:00
|
|
|
# binfmt
|
|
|
|
(mkRenamedOptionModule [ "boot" "binfmtMiscRegistrations" ] [ "boot" "binfmt" "registrations" ])
|
2019-08-31 18:08:49 +00:00
|
|
|
|
2019-08-29 14:32:59 +00:00
|
|
|
# ACME
|
|
|
|
(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.")
|
|
|
|
(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")
|
|
|
|
(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")
|
2019-05-10 22:03:24 +00:00
|
|
|
|
2019-07-05 20:39:58 +00:00
|
|
|
# KSM
|
|
|
|
(mkRenamedOptionModule [ "hardware" "enableKSM" ] [ "hardware" "ksm" "enable" ])
|
|
|
|
|
2019-07-15 17:18:49 +00:00
|
|
|
# resolvconf
|
|
|
|
(mkRenamedOptionModule [ "networking" "dnsSingleRequest" ] [ "networking" "resolvconf" "dnsSingleRequest" ])
|
|
|
|
(mkRenamedOptionModule [ "networking" "dnsExtensionMechanism" ] [ "networking" "resolvconf" "dnsExtensionMechanism" ])
|
|
|
|
(mkRenamedOptionModule [ "networking" "extraResolvconfConf" ] [ "networking" "resolvconf" "extraConfig" ])
|
|
|
|
(mkRenamedOptionModule [ "networking" "resolvconfOptions" ] [ "networking" "resolvconf" "extraOptions" ])
|
|
|
|
|
2019-10-06 06:06:25 +00:00
|
|
|
# BLCR
|
|
|
|
(mkRemovedOptionModule [ "environment.blcr.enable" ] "The BLCR module has been removed")
|
|
|
|
|
2019-11-24 16:33:51 +00:00
|
|
|
# beegfs
|
|
|
|
(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
|
|
|
# osquery
|
|
|
|
(mkRemovedOptionModule [ "services.osquery" ] "The osquery module has been removed")
|
|
|
|
|
2019-08-31 18:08:49 +00:00
|
|
|
# Redis
|
|
|
|
(mkRemovedOptionModule [ "services" "redis" "user" ] "The redis module now is hardcoded to the redis user.")
|
|
|
|
(mkRemovedOptionModule [ "services" "redis" "dbpath" ] "The redis module now uses /var/lib/redis as data directory.")
|
|
|
|
(mkRemovedOptionModule [ "services" "redis" "dbFilename" ] "The redis module now uses /var/lib/redis/dump.rdb as database dump location.")
|
|
|
|
(mkRemovedOptionModule [ "services" "redis" "appendOnlyFilename" ] "This option was never used.")
|
|
|
|
(mkRemovedOptionModule [ "services" "redis" "pidFile" ] "This option was removed.")
|
|
|
|
|
2019-08-05 11:03:38 +00:00
|
|
|
] ++ (forEach [ "blackboxExporter" "collectdExporter" "fritzboxExporter"
|
2018-03-09 20:33:09 +00:00
|
|
|
"jsonExporter" "minioExporter" "nginxExporter" "nodeExporter"
|
|
|
|
"snmpExporter" "unifiExporter" "varnishExporter" ]
|
|
|
|
(opt: mkRemovedOptionModule [ "services" "prometheus" "${opt}" ] ''
|
|
|
|
The prometheus exporters are now configured using `services.prometheus.exporters'.
|
|
|
|
See the 18.03 release notes for more information.
|
2019-10-31 14:29:10 +00:00
|
|
|
'' ))
|
|
|
|
|
|
|
|
++ (forEach [ "enable" "substitutions" "preset" ]
|
|
|
|
(opt: mkRemovedOptionModule [ "fonts" "fontconfig" "ultimate" "${opt}" ] ''
|
|
|
|
The fonts.fontconfig.ultimate module and configuration is obsolete.
|
|
|
|
The repository has since been archived and activity has ceased.
|
|
|
|
https://github.com/bohoomil/fontconfig-ultimate/issues/171.
|
|
|
|
No action should be needed for font configuration, as the fonts.fontconfig
|
|
|
|
module is already used by default.
|
2018-03-09 20:33:09 +00:00
|
|
|
'' ));
|
2015-10-14 16:05:50 +00:00
|
|
|
}
|