all repos — nixfiles @ dfe0f1604f2492a534e14dd7dd12e8981e0c5f4e

System and user configuration, managed by nix and home-manager

TabNine: provision registration key from private repository

Alan Pearce
commit

dfe0f1604f2492a534e14dd7dd12e8981e0c5f4e

parent

24faceb23414ff82f063b34ed68f88c3e1629544

1 file changed, 10 insertions(+), 0 deletions(-)

jump to
M user/modules/tabnine.nixuser/modules/tabnine.nix
@@ -41,6 +41,13 @@ <filename>\${configDir}/tabnine_config.json</filename>
''; }; + registrationKey = mkOption { + type = types.str; + description = '' + Registration key for TabNine. For one-time-purchase users, this should be the e-mail address and base-64-encoded key joined together without spacing. + ''; + }; + lspConfig = mkOption { type = types.attrs; default = {};
@@ -58,6 +65,9 @@ source = lspConfigFile cfg.lspConfig;
}; home.file."${cfg.configDir}/tabnine_config.json" = { source = pkgs.writeText "tabnine_config.json" (builtins.toJSON cfg.config); + }; + home.file."${cfg.configDir}/registration_key" = { + text = cfg.registrationKey; }; }; }