nixpkgs/nixos/modules/config
Eelco Dolstra 5f077e2296 Factor out option renaming
Option aliases/deprecations can now be declared in any NixOS module,
not just in nixos/modules/rename.nix. This is more modular (since it
allows for example grub-related aliases to be declared in the grub
module), and allows aliases outside of NixOS (e.g. in NixOps modules).

The syntax is a bit funky. Ideally we'd have something like:

  options = {
    foo.bar.newOption = mkOption { ... };
    foo.bar.oldOption = mkAliasOption [ "foo" "bar" "newOption" ];
  };

but that's not possible because options cannot define values in
*other* options - you need to have a "config" for that. So instead we
have functions that return a *module*: mkRemovedOptionModule,
mkRenamedOptionModule and mkAliasOptionModule. These can be used via
"imports", e.g.

  imports = [
    (mkAliasOptionModule [ "foo" "bar" "oldOption" ] [ "foo" "bar" "newOption" ]);
  ];

As an added bonus, deprecation warnings now show the file name of the
offending module.

Fixes #10385.
2015-10-14 18:18:47 +02:00
..
fonts nixos/fonts: Add unifont to list of default fonts. 2015-09-26 21:04:15 +02:00
gnu.nix Start ssh-agent as a user unit 2014-04-18 00:45:26 +02:00
gtk-exe-env.nix uim, gtk-exe-env, qt-plugin-env: Add input method modules for GTK+ and Qt 2014-07-14 21:33:05 +09:00
i18n.nix nixos i18n: add option to set console keymap from xkb 2015-09-13 11:02:16 +02:00
krb5.nix krb5: Break out into a lib and not lib version 2015-06-26 22:05:47 -07:00
ldap.nix nixos: fix some types 2015-09-18 18:48:50 +00:00
networking.nix networking module: add extraResolvconfConf option 2015-09-26 18:49:16 +02:00
no-x-libs.nix dbus: rename useX11 option into x11Support, cleanup a bit 2015-03-29 23:28:30 +00:00
nsswitch.nix nsswitch.conf: Omit ldap unless ldap is enabled 2015-02-25 14:31:13 +01:00
power-management.nix power management: restart post-resume.target on resume 2015-10-06 20:12:40 +02:00
pulseaudio.nix nixos/pulseaudio: Fix description 2015-06-11 17:26:12 -07:00
qt-plugin-env.nix uim, gtk-exe-env, qt-plugin-env: Add input method modules for GTK+ and Qt 2014-07-14 21:33:05 +09:00
shells-environment.nix Manual: Remove store path references 2015-09-24 11:50:58 +02:00
swap.nix Get all lib functions from lib, not pkgs.lib, in modules 2014-07-02 12:28:18 -04:00
sysctl.nix nixos: condition sysctl.kptr_restrict on features.grsecurity 2015-03-29 00:42:58 +01:00
system-environment.nix nixos,lib: move environment generation related copy-paste to lib 2015-09-18 18:48:49 +00:00
system-path.nix gdb: Look for debug info in /run/current-system/sw/lib/debug 2015-09-17 15:56:37 +02:00
timezone.nix nixos: let's not forget types in the timezone module 2015-07-31 01:57:47 +00:00
unix-odbc-drivers.nix Get all lib functions from lib, not pkgs.lib, in modules 2014-07-02 12:28:18 -04:00
update-users-groups.pl Ensure that the home directory exists even if the user already exists 2015-02-24 11:57:38 +01:00
users-groups.nix Factor out option renaming 2015-10-14 18:18:47 +02:00
vpnc.nix vpnc: Fix building of system config. 2014-08-31 21:39:03 +02:00
zram.nix nixos: Add zram swap module 2014-05-06 20:04:22 +02:00