{ config, pkgs, lib, ... }: with builtins // lib; let cfg = config.installer; in { imports = [ ./kobo.nix ]; options.installer = { package = mkOption { type = types.package; default = pkgs.callpackage ./installScript.nix { koboInput = null; koboLabel = cfg.koboLabel; koboManifest = config.manifest; }; }; koboLabel = mkOption { type = types.str; default = "KOBOeReader"; description = "The label of the Kobo eReader mount target"; }; }; }