2015-10-14 17:05:50 +01:00
|
|
|
{ lib, ... }:
|
2013-10-23 16:50:55 +01:00
|
|
|
|
2014-04-14 15:26:48 +01:00
|
|
|
with lib;
|
2009-09-28 19:26:13 +01:00
|
|
|
|
2015-10-14 17:05:50 +01:00
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
(mkRenamedOptionModule [ "environment" "x11Packages" ] [ "environment" "systemPackages" ])
|
|
|
|
(mkRenamedOptionModule [ "environment" "enableBashCompletion" ] [ "programs" "bash" "enableCompletion" ])
|
|
|
|
(mkRenamedOptionModule [ "environment" "nix" ] [ "nix" "package" ])
|
|
|
|
(mkRenamedOptionModule [ "fonts" "enableFontConfig" ] [ "fonts" "fontconfig" "enable" ])
|
|
|
|
(mkRenamedOptionModule [ "fonts" "extraFonts" ] [ "fonts" "fonts" ])
|
|
|
|
|
|
|
|
(mkRenamedOptionModule [ "security" "extraSetuidPrograms" ] [ "security" "setuidPrograms" ])
|
|
|
|
(mkRenamedOptionModule [ "networking" "enableWLAN" ] [ "networking" "wireless" "enable" ])
|
|
|
|
(mkRenamedOptionModule [ "networking" "enableRT73Firmware" ] [ "networking" "enableRalinkFirmware" ])
|
|
|
|
|
2015-12-23 23:14:40 +00:00
|
|
|
(mkRenamedOptionModule [ "services" "cadvisor" "host" ] [ "services" "cadvisor" "listenAddress" ])
|
2015-12-23 23:28:09 +00:00
|
|
|
(mkRenamedOptionModule [ "services" "elasticsearch" "host" ] [ "services" "elasticsearch" "listenAddress" ])
|
2015-12-23 23:20:39 +00:00
|
|
|
(mkRenamedOptionModule [ "services" "graphite" "api" "host" ] [ "services" "graphite" "api" "listenAddress" ])
|
|
|
|
(mkRenamedOptionModule [ "services" "graphite" "web" "host" ] [ "services" "graphite" "web" "listenAddress" ])
|
2015-12-23 23:28:27 +00:00
|
|
|
(mkRenamedOptionModule [ "services" "kibana" "host" ] [ "services" "kibana" "listenAddress" ])
|
2015-12-23 23:04:04 +00:00
|
|
|
(mkRenamedOptionModule [ "services" "mpd" "network" "host" ] [ "services" "mpd" "network" "listenAddress" ])
|
2015-12-23 22:58:42 +00:00
|
|
|
(mkRenamedOptionModule [ "services" "neo4j" "host" ] [ "services" "neo4j" "listenAddress" ])
|
2015-12-23 23:22:47 +00:00
|
|
|
(mkRenamedOptionModule [ "services" "shout" "host" ] [ "services" "shout" "listenAddress" ])
|
2015-12-23 23:23:51 +00:00
|
|
|
(mkRenamedOptionModule [ "services" "sslh" "host" ] [ "services" "sslh" "listenAddress" ])
|
2015-12-23 23:20:56 +00:00
|
|
|
(mkRenamedOptionModule [ "services" "statsd" "host" ] [ "services" "statsd" "listenAddress" ])
|
2015-12-23 23:13:15 +00:00
|
|
|
(mkRenamedOptionModule [ "services" "subsonic" "host" ] [ "services" "subsonic" "listenAddress" ])
|
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" ])
|
|
|
|
|
2015-10-14 17:05:50 +01:00
|
|
|
# Old Grub-related options.
|
|
|
|
(mkRenamedOptionModule [ "boot" "initrd" "extraKernelModules" ] [ "boot" "initrd" "kernelModules" ])
|
|
|
|
(mkRenamedOptionModule [ "boot" "extraKernelParams" ] [ "boot" "kernelParams" ])
|
2016-05-25 09:34:54 +01:00
|
|
|
(mkRenamedOptionModule [ "boot" "loader" "grub" "timeout" ] [ "boot" "loader" "timeout" ])
|
|
|
|
(mkRenamedOptionModule [ "boot" "loader" "gummiboot" "timeout" ] [ "boot" "loader" "timeout" ])
|
2015-10-14 17:05:50 +01:00
|
|
|
|
|
|
|
# smartd
|
|
|
|
(mkRenamedOptionModule [ "services" "smartd" "deviceOpts" ] [ "services" "smartd" "defaults" "monitored" ])
|
|
|
|
|
|
|
|
# OpenSSH
|
|
|
|
(mkRenamedOptionModule [ "services" "sshd" "ports" ] [ "services" "openssh" "ports" ])
|
|
|
|
(mkAliasOptionModule [ "services" "sshd" "enable" ] [ "services" "openssh" "enable" ])
|
|
|
|
(mkRenamedOptionModule [ "services" "sshd" "allowSFTP" ] [ "services" "openssh" "allowSFTP" ])
|
|
|
|
(mkRenamedOptionModule [ "services" "sshd" "forwardX11" ] [ "services" "openssh" "forwardX11" ])
|
|
|
|
(mkRenamedOptionModule [ "services" "sshd" "gatewayPorts" ] [ "services" "openssh" "gatewayPorts" ])
|
|
|
|
(mkRenamedOptionModule [ "services" "sshd" "permitRootLogin" ] [ "services" "openssh" "permitRootLogin" ])
|
|
|
|
(mkRenamedOptionModule [ "services" "xserver" "startSSHAgent" ] [ "services" "xserver" "startOpenSSHAgent" ])
|
|
|
|
(mkRenamedOptionModule [ "services" "xserver" "startOpenSSHAgent" ] [ "programs" "ssh" "startAgent" ])
|
|
|
|
(mkAliasOptionModule [ "services" "openssh" "knownHosts" ] [ "programs" "ssh" "knownHosts" ])
|
|
|
|
|
|
|
|
# VirtualBox
|
|
|
|
(mkRenamedOptionModule [ "services" "virtualbox" "enable" ] [ "virtualisation" "virtualbox" "guest" "enable" ])
|
|
|
|
(mkRenamedOptionModule [ "services" "virtualboxGuest" "enable" ] [ "virtualisation" "virtualbox" "guest" "enable" ])
|
|
|
|
(mkRenamedOptionModule [ "programs" "virtualbox" "enable" ] [ "virtualisation" "virtualbox" "host" "enable" ])
|
|
|
|
(mkRenamedOptionModule [ "programs" "virtualbox" "addNetworkInterface" ] [ "virtualisation" "virtualbox" "host" "addNetworkInterface" ])
|
|
|
|
(mkRenamedOptionModule [ "programs" "virtualbox" "enableHardening" ] [ "virtualisation" "virtualbox" "host" "enableHardening" ])
|
|
|
|
(mkRenamedOptionModule [ "services" "virtualboxHost" "enable" ] [ "virtualisation" "virtualbox" "host" "enable" ])
|
|
|
|
(mkRenamedOptionModule [ "services" "virtualboxHost" "addNetworkInterface" ] [ "virtualisation" "virtualbox" "host" "addNetworkInterface" ])
|
|
|
|
(mkRenamedOptionModule [ "services" "virtualboxHost" "enableHardening" ] [ "virtualisation" "virtualbox" "host" "enableHardening" ])
|
|
|
|
|
|
|
|
# Tarsnap
|
|
|
|
(mkRenamedOptionModule [ "services" "tarsnap" "config" ] [ "services" "tarsnap" "archives" ])
|
|
|
|
|
2016-02-10 07:10:35 +00:00
|
|
|
# ibus
|
2016-04-13 01:32:53 +01:00
|
|
|
(mkRenamedOptionModule [ "programs" "ibus" "plugins" ] [ "i18n" "inputMethod" "ibus" "engines" ])
|
2016-02-10 07:10:35 +00:00
|
|
|
|
2015-10-14 17:05:50 +01:00
|
|
|
# proxy
|
|
|
|
(mkRenamedOptionModule [ "nix" "proxy" ] [ "networking" "proxy" "default" ])
|
|
|
|
|
2016-04-25 10:00:26 +01:00
|
|
|
# sandboxing
|
|
|
|
(mkRenamedOptionModule [ "nix" "useChroot" ] [ "nix" "useSandbox" ])
|
|
|
|
(mkRenamedOptionModule [ "nix" "chrootDirs" ] [ "nix" "sandboxPaths" ])
|
|
|
|
|
2015-10-14 17:05:50 +01:00
|
|
|
# KDE
|
|
|
|
(mkRenamedOptionModule [ "kde" "extraPackages" ] [ "environment" "systemPackages" ])
|
|
|
|
(mkRenamedOptionModule [ "environment" "kdePackages" ] [ "environment" "systemPackages" ])
|
|
|
|
|
|
|
|
# Multiple efi bootloaders now
|
|
|
|
(mkRenamedOptionModule [ "boot" "loader" "efi" "efibootmgr" "enable" ] [ "boot" "loader" "efi" "canTouchEfiVariables" ])
|
|
|
|
|
|
|
|
# NixOS environment changes
|
|
|
|
# !!! this hardcodes bash, could we detect from config which shell is actually used?
|
|
|
|
(mkRenamedOptionModule [ "environment" "promptInit" ] [ "programs" "bash" "promptInit" ])
|
|
|
|
|
|
|
|
(mkRenamedOptionModule [ "services" "xserver" "driSupport" ] [ "hardware" "opengl" "driSupport" ])
|
|
|
|
(mkRenamedOptionModule [ "services" "xserver" "driSupport32Bit" ] [ "hardware" "opengl" "driSupport32Bit" ])
|
|
|
|
(mkRenamedOptionModule [ "services" "xserver" "s3tcSupport" ] [ "hardware" "opengl" "s3tcSupport" ])
|
|
|
|
(mkRenamedOptionModule [ "hardware" "opengl" "videoDrivers" ] [ "services" "xserver" "videoDrivers" ])
|
2016-01-24 23:57:28 +00:00
|
|
|
(mkRenamedOptionModule [ "services" "xserver" "vaapiDrivers" ] [ "hardware" "opengl" "extraPackages" ])
|
2015-10-14 17:05:50 +01:00
|
|
|
|
|
|
|
(mkRenamedOptionModule [ "services" "mysql55" ] [ "services" "mysql" ])
|
|
|
|
|
|
|
|
(mkAliasOptionModule [ "environment" "checkConfigurationOptions" ] [ "_module" "check" ])
|
|
|
|
|
|
|
|
# XBMC
|
|
|
|
(mkRenamedOptionModule [ "services" "xserver" "windowManager" "xbmc" ] [ "services" "xserver" "desktopManager" "kodi" ])
|
|
|
|
(mkRenamedOptionModule [ "services" "xserver" "desktopManager" "xbmc" ] [ "services" "xserver" "desktopManager" "kodi" ])
|
|
|
|
|
|
|
|
# DNSCrypt-proxy
|
|
|
|
(mkRenamedOptionModule [ "services" "dnscrypt-proxy" "port" ] [ "services" "dnscrypt-proxy" "localPort" ])
|
|
|
|
|
2015-12-26 10:35:56 +00:00
|
|
|
(mkRenamedOptionModule [ "services" "hostapd" "extraCfg" ] [ "services" "hostapd" "extraConfig" ])
|
|
|
|
|
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-06-09 19:12:31 +01:00
|
|
|
# Grsecurity
|
2016-08-28 14:45:52 +01:00
|
|
|
(mkRemovedOptionModule [ "security" "grsecurity" "kernelPatch" ] "")
|
|
|
|
(mkRemovedOptionModule [ "security" "grsecurity" "config" "mode" ] "")
|
|
|
|
(mkRemovedOptionModule [ "security" "grsecurity" "config" "priority" ] "")
|
|
|
|
(mkRemovedOptionModule [ "security" "grsecurity" "config" "system" ] "")
|
|
|
|
(mkRemovedOptionModule [ "security" "grsecurity" "config" "virtualisationConfig" ] "")
|
|
|
|
(mkRemovedOptionModule [ "security" "grsecurity" "config" "hardwareVirtualisation" ] "")
|
|
|
|
(mkRemovedOptionModule [ "security" "grsecurity" "config" "virtualisationSoftware" ] "")
|
|
|
|
(mkRemovedOptionModule [ "security" "grsecurity" "config" "sysctl" ] "")
|
|
|
|
(mkRemovedOptionModule [ "security" "grsecurity" "config" "denyChrootChmod" ] "")
|
|
|
|
(mkRemovedOptionModule [ "security" "grsecurity" "config" "denyChrootCaps" ] "")
|
|
|
|
(mkRemovedOptionModule [ "security" "grsecurity" "config" "denyUSB" ] "")
|
|
|
|
(mkRemovedOptionModule [ "security" "grsecurity" "config" "restrictProc" ] "")
|
|
|
|
(mkRemovedOptionModule [ "security" "grsecurity" "config" "restrictProcWithGroup" ] "")
|
|
|
|
(mkRemovedOptionModule [ "security" "grsecurity" "config" "unrestrictProcGid" ] "")
|
|
|
|
(mkRemovedOptionModule [ "security" "grsecurity" "config" "disableRBAC" ] "")
|
|
|
|
(mkRemovedOptionModule [ "security" "grsecurity" "config" "disableSimultConnect" ] "")
|
|
|
|
(mkRemovedOptionModule [ "security" "grsecurity" "config" "verboseVersion" ] "")
|
|
|
|
(mkRemovedOptionModule [ "security" "grsecurity" "config" "kernelExtraConfig" ] "")
|
2016-06-09 19:12:31 +01:00
|
|
|
|
2016-08-07 23:56:47 +01:00
|
|
|
# Unity3D
|
|
|
|
(mkRenamedOptionModule [ "programs" "unity3d" "enable" ] [ "security" "chromiumSuidSandbox" "enable" ])
|
|
|
|
|
2016-08-19 11:14:07 +01:00
|
|
|
# fontconfig-ultimate
|
|
|
|
(mkRenamedOptionModule [ "fonts" "fontconfig" "ultimate" "rendering" ] [ "fonts" "fontconfig" "ultimate" "preset" ])
|
|
|
|
|
2016-09-14 00:24:25 +01:00
|
|
|
# murmur
|
|
|
|
(mkRenamedOptionModule [ "services" "murmur" "welcome" ] [ "services" "murmur" "welcometext" ])
|
|
|
|
|
2016-11-20 14:41:38 +00:00
|
|
|
# parsoid
|
|
|
|
(mkRemovedOptionModule [ "services" "parsoid" "interwikis" ] [ "services" "parsoid" "wikis" ])
|
|
|
|
|
2016-09-30 00:27:34 +01: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
|
|
|
|
then { path = "/var/run/postgrey.sock"; }
|
|
|
|
else { addr = value inetAddr; port = value inetPort; }
|
|
|
|
))
|
|
|
|
|
2015-10-14 17:05:50 +01: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" ] "")
|
|
|
|
(mkRemovedOptionModule [ "services" "xserver" "startGnuPGAgent" ]
|
2016-09-30 11:00:33 +01: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" ] "")
|
2015-10-14 17:05:50 +01:00
|
|
|
];
|
|
|
|
}
|