{ pov, config, lib, ... }: let inherit (lib) types; cfg = lib.getAttrFromPath pov config; in { option = { type = types.bool; default = false; }; config = lib.mkIf cfg.enable { boot.initrd.systemd.enable = true; assertions = [ { assertion = cfg.type != null; message = "The option modules.boot.type must be set in order to use the module."; } ]; }; }