1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-15 19:23:01 +03:00
mobile-nixos/modules/initrd-order.nix
2019-09-23 15:45:18 -04:00

33 lines
1018 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;
# Nothing should happen after SWITCH_ROOT_HAPPENING
SWITCH_ROOT_HAPPENING = AFTER_SWITCH_ROOT_INIT + 1;
}