TabNine: provision registration key from private repository
1 file changed, 10 insertions(+), 0 deletions(-)
jump to
M user/modules/tabnine.nix → user/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; }; }; }