1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-11-28 12:56:54 +03:00
mobile-nixos/modules/initrd-order.nix
2018-06-17 17:50:32 +00:00

30 lines
909 B
Nix

# This is not a module.
# This is a list of orderable hooks.
# *ALWAYS* use a named hook.
# This means that inserting between hooks will never be an issue.
rec {
DEVICE_INIT = 100;
AFTER_DEVICE_INIT = DEVICE_INIT + 10;
BEFORE_DEVICE_INIT = DEVICE_INIT - 10;
FRAMEBUFFER_INIT = DEVICE_INIT + 5;
AFTER_FRAMEBUFFER_INIT = FRAMEBUFFER_INIT + 1;
BEFORE_FRAMEBUFFER_INIT = FRAMEBUFFER_INIT - 1;
NETWORK_INIT = DEVICE_INIT + 100;
AFTER_NETWORK_INIT = NETWORK_INIT + 10;
BEFORE_NETWORK_INIT = NETWORK_INIT - 10;
SERVICES_INIT = NETWORK_INIT + 100;
AFTER_SERVICES_INIT = SERVICES_INIT + 10;
BEFORE_SERVICES_INIT = SERVICES_INIT - 10;
READY_INIT = SERVICES_INIT + 100;
AFTER_READY_INIT = READY_INIT + 10;
BEFORE_READY_INIT = READY_INIT - 10;
SWITCH_ROOT_INIT = READY_INIT + 100;
AFTER_SWITCH_ROOT_INIT = SWITCH_ROOT_INIT + 10;
BEFORE_SWITCH_ROOT_INIT = SWITCH_ROOT_INIT - 10;
}