nixpkgs/nixos/modules/system/boot/loader
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
..
generations-dir nixos: add a few missing type specifiers under boot.* 2015-02-28 09:19:23 +01:00
generic-extlinux-compatible extlinux-conf-builder: Fix warning when building in chroot 2015-07-26 00:31:20 +03:00
grub Factor out option renaming 2015-10-14 18:18:47 +02:00
gummiboot nixos: gummiboot: change default to 1000 if boot.loader.timeout is null 2015-01-30 10:36:21 +01:00
init-script nixos: add a few missing type specifiers under boot.* 2015-02-28 09:19:23 +01:00
raspberrypi Raspberry Pi 2 changes to make it boot. 2015-05-09 17:05:24 +00:00
efi.nix nixos: fix some types 2015-09-18 18:48:50 +00:00
loader.nix nixos: loader: added generic config.boot.loader.timeout option 2015-01-30 09:53:44 +01:00